aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Modules/Inputs/implicit-built-Werror-using-W/convert.h
blob: 532fd6e28ccc4bcbac1414b6d3d2f335aeba6edd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#ifdef USE_PRAGMA
#pragma clang diagnostic push
#if USE_PRAGMA == 1
#pragma clang diagnostic warning "-Wshorten-64-to-32"
#else
#pragma clang diagnostic error "-Wshorten-64-to-32"
#endif
#endif
template <class T> int convert(T V) { return V; }
#ifdef USE_PRAGMA
#pragma clang diagnostic pop
#endif