1 // RUN: %clang_cc1 -triple x86_64 -verify %s
4 * Standard pragmas - improved wording
6 * NB: this also covers N631 which changed these features into pragmas rather
10 // Verify that we do not expand macros in STDC pragmas. If we expanded them,
11 // this code would issue diagnostics.
13 #pragma STDC FENV_ACCESS ON
14 #pragma STDC CX_LIMITED_RANGE ON
15 #pragma STDC FP_CONTRACT ON
17 // If we expanded macros, this code would not issue diagnostics.
19 #pragma STDC FENV_ACCESS BLERP // expected-warning {{expected 'ON' or 'OFF' or 'DEFAULT' in pragma}}
20 #pragma STDC CX_LIMITED_RANGE BLERP // expected-warning {{expected 'ON' or 'OFF' or 'DEFAULT' in pragma}}
21 #pragma STDC FP_CONTRACT BLERP // expected-warning {{expected 'ON' or 'OFF' or 'DEFAULT' in pragma}}