xref: /llvm-project/clang/test/Modules/Inputs/implicit-built-Werror-using-W/convert.h (revision 9a92f2f742347d9b31470349f3b777ecab580ac1)
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
convert(T V)9 template <class T> int convert(T V) { return V; }
10 #ifdef USE_PRAGMA
11 #pragma clang diagnostic pop
12 #endif
13