brintos

brintos / llvm-project-archived public Read only

0
0
Text · 693 B · 2d4b7bc Raw
23 lines · c
1/* RUN: %clang_cc1 -std=c89 -verify -pedantic -Wno-c11-extensions %s2   RUN: %clang_cc1 -std=c99 -verify -pedantic -Wno-c11-extensions %s3   RUN: %clang_cc1 -std=c11 -verify -pedantic %s4   RUN: %clang_cc1 -std=c17 -verify -pedantic %s5   RUN: %clang_cc1 -std=c2x -verify -pedantic %s6 */7 8/* expected-no-diagnostics */9 10/* WG14 DR483: yes11 * __LINE__ and __FILE__ in macro replacement list12 *13 * The crux of this DR is to ensure that __LINE__ (and __FILE__) use in a macro14 * replacement list report the line and file of the expansion of that macro,15 * not the line and file of the macro definition itself.16 */17#line 50018#define MAC() __LINE__19 20#line 100021_Static_assert(MAC() == 1000, "");22 23