[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Lexer / counter.c
bloba7db898095ef0c52f7fe9f212e63ce0c5d30b1d9
1 // RUN: %clang -E %s | FileCheck %s
3 #define PASTE2(x,y) x##y
4 #define PASTE1(x,y) PASTE2(x,y)
5 #define UNIQUE(x) PASTE1(x,__COUNTER__)
7 A: __COUNTER__
8 B: UNIQUE(foo);
9 C: UNIQUE(foo);
10 D: __COUNTER__
12 // CHECK: A: 0
13 // CHECK: B: foo1;
14 // CHECK: C: foo2;
15 // CHECK: D: 3