clang/test/Preprocessor/defer-ts.c
raw| 1 | // RUN: %clang_cc1 -fsyntax-only -fdefer-ts -verify=enabled %s |
| 2 | // RUN: %clang_cc1 -fsyntax-only -verify=disabled %s |
| 3 | // RUN: %clang_cc1 -x c++ -fsyntax-only -fdefer-ts -verify=disabled %s |
| 4 | // RUN: %clang_cc1 -x c++ -fsyntax-only -verify=disabled %s |
| 5 | // enabled-no-diagnostics |
| 6 | #if __STDC_DEFER_TS25755__ != 1 |
| 7 | // disabled-error@+1 {{Should have defined __STDC_DEFER_TS25755__ to 1}} |
| 8 | # error Should have defined __STDC_DEFER_TS25755__ to 1 |
| 9 | #endif |