clang/test/Preprocessor/macro_redefined.S
raw| 1 | // RUN: %clang %s -E -DCLI_MACRO=1 2>&1 | FileCheck %s |
| 2 | |
| 3 | #define CLI_MACRO |
| 4 | // CHECK: macro_redefined.S{{.+}}: warning: 'CLI_MACRO' macro redefined |
| 5 | // CHECK: <command line>{{.+}}: note: previous definition is here |
| 6 | |
| 7 | #define REGULAR_MACRO |
| 8 | #define REGULAR_MACRO 1 |
| 9 | // CHECK: macro_redefined.S{{.+}}: warning: 'REGULAR_MACRO' macro redefined |
| 10 | // CHECK: macro_redefined.S{{.+}}: note: previous definition is here |