repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git]
/
clang
/
test
/
Lexer
/
counter.c
blob
a7db898095ef0c52f7fe9f212e63ce0c5d30b1d9
1
// RUN: %clang -E %s | FileCheck %s
2
3
#define PASTE2(x,y) x##y
4
#define PASTE1(x,y) PASTE2(x,y)
5
#define UNIQUE(x) PASTE1(x,__COUNTER__)
6
7
A
:
__COUNTER__
8
B
:
UNIQUE
(
foo
);
9
C
:
UNIQUE
(
foo
);
10
D
:
__COUNTER__
11
12
// CHECK: A: 0
13
// CHECK: B: foo1;
14
// CHECK: C: foo2;
15
// CHECK: D: 3
16