| 1 |
/* RUN: %clang_cc1 -std=c89 -verify -pedantic -Wno-c11-extensions %s |
| 2 |
RUN: %clang_cc1 -std=c99 -verify -pedantic -Wno-c11-extensions %s |
| 3 |
RUN: %clang_cc1 -std=c11 -verify -pedantic %s |
| 4 |
RUN: %clang_cc1 -std=c17 -verify -pedantic %s |
| 5 |
RUN: %clang_cc1 -std=c2x -verify -pedantic %s |
| 6 |
*/ |
| 7 |
|
| 8 |
/* expected-no-diagnostics */ |
| 9 |
|
| 10 |
/* WG14 DR464: yes |
| 11 |
* Clarifying the Behavior of the #line Directive |
| 12 |
* |
| 13 |
* Note: the behavior described by this DR allows for two different |
| 14 |
* interpretations, but WG14 N2322 (adopted for C2x) adds a recommended |
| 15 |
* practice which is what we're testing our interpretation against. |
| 16 |
*/ |
| 17 |
#line 10000 |
| 18 |
_Static_assert(__LI\ |
| 19 |
NE__ == 10000, ""); |