clang/test/Modules/Inputs/implicit-built-Werror-using-W/convert.h
raw| 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 |