1 // RUN: not %clang_cc1 -fsyntax-only %s 2>&1 | FileCheck %s
14 const char str
[] = "string";
16 // CHECK: :15:3: error: invalid operands to binary expression
17 // CHECK: ('const char[7]' and 'int')
20 // CHECK: :3:11: note: expanded from macro 'a'
23 // CHECK: :4:11: note: expanded from macro 'b'
26 // CHECK: :5:14: note: expanded from macro 'c'
27 // CHECK: #define c(x) d(x)
29 // CHECK: :6:15: note: expanded from macro 'd'
30 // CHECK: #define d(x) x*1
34 // CHECK: :33:5: warning: expression result unused
37 // CHECK: :8:11: note: expanded from macro 'e'
40 // CHECK: :9:11: note: expanded from macro 'f'
43 // CHECK: :10:16: note: expanded from macro 'g'
44 // CHECK: #define g(x) h(x)
46 // CHECK: :11:14: note: expanded from macro 'h'
47 // CHECK: #define h(x) x
50 // CHECK: 1 warning and 1 error generated.