summaryrefslogtreecommitdiff
path: root/clang/test/Preprocessor/macro_paste_simple.c
blob: 0e62ba46dc96d8336b1eeac102147a26c48382cf (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// RUN: %clang_cc1 %s -E | FileCheck %s

#define FOO bar ## baz ## 123

// CHECK: A: barbaz123
A: FOO

// PR9981
#define M1(A) A
#define M2(X) X
B: M1(M2(##))

// CHECK: B: ##