[LVI] Add trunc to i1 handling. (#124480)
[llvm-project.git] / clang / test / Modules / Inputs / implicit-built-Werror-using-W / convert.h
blob532fd6e28ccc4bcbac1414b6d3d2f335aeba6edd
1 #ifdef USE_PRAGMA
2 #pragma clang diagnostic push
3 #if USE_PRAGMA == 1
4 #pragma clang diagnostic warning "-Wshorten-64-to-32"
5 #else
6 #pragma clang diagnostic error "-Wshorten-64-to-32"
7 #endif
8 #endif
9 template <class T> int convert(T V) { return V; }
10 #ifdef USE_PRAGMA
11 #pragma clang diagnostic pop
12 #endif