1 // RUN: not %clang -fsyntax-only -fno-diagnostics-show-line-numbers -fmacro-backtrace-limit=0 %s 2>&1 | FileCheck %s
17 // CHECK: :15:1: error: expected identifier or '('
20 // CHECK: :13:14: note: expanded from macro 'FOOL'
21 // CHECK: #define FOOL DROOL
23 // CHECK: :12:15: note: expanded from macro 'DROOL'
24 // CHECK: #define DROOL WAZ
26 // CHECK: :11:13: note: expanded from macro 'WAZ'
27 // CHECK: #define WAZ ZAZ
29 // CHECK: :10:13: note: expanded from macro 'ZAZ'
30 // CHECK: #define ZAZ BAB
32 // CHECK: :9:13: note: expanded from macro 'BAB'
33 // CHECK: #define BAB ABA
35 // CHECK: :8:13: note: expanded from macro 'ABA'
36 // CHECK: #define ABA TAZ
38 // CHECK: :7:13: note: expanded from macro 'TAZ'
39 // CHECK: #define TAZ QUZ
41 // CHECK: :6:13: note: expanded from macro 'QUZ'
42 // CHECK: #define QUZ BAZ
44 // CHECK: :5:13: note: expanded from macro 'BAZ'
45 // CHECK: #define BAZ BAR
47 // CHECK: :4:13: note: expanded from macro 'BAR'
48 // CHECK: #define BAR FOO
50 // CHECK: :3:13: note: expanded from macro 'FOO'
51 // CHECK: #define FOO 1+"hi"
54 #define ADD(a, b) a ## #b
56 // CHECK: error: expected identifier or '('
59 // CHECK: note: expanded from macro 'ADD'
60 // CHECK: #define ADD(a, b) a ## #b
62 // CHECK: note: expanded from here
66 // CHECK: 2 errors generated.