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