summaryrefslogtreecommitdiffstats
path: root/tests/diagnostics/x-macro-line-continuation.slang
blob: ad84354067829e5aa47b74647c6217564d12fc8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// x-macro-line-continuation.slang
//TEST:SIMPLE:

// Tests line continuations on diagnostic output of macros

#define X(M) \
    M(0) \
    M(1) \
    M(2) \
    M(3) \
    M(4, 4) \
    M(5) \
    M(6) \
    M(7)

#define A(x) + x + x + x

int sum()
{
	return X(A);
}