diff options
Diffstat (limited to 'test/Preprocessor/macro_paste_identifier_error.c')
-rw-r--r-- | test/Preprocessor/macro_paste_identifier_error.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Preprocessor/macro_paste_identifier_error.c b/test/Preprocessor/macro_paste_identifier_error.c new file mode 100644 index 0000000000..457e6f7fc1 --- /dev/null +++ b/test/Preprocessor/macro_paste_identifier_error.c @@ -0,0 +1,7 @@ +// RUN: %clang_cc1 -fms-extensions -Wno-invalid-token-paste %s -verify +// RUN: %clang_cc1 -E -fms-extensions -Wno-invalid-token-paste %s | FileCheck %s +// RUN: %clang_cc1 -E -fms-extensions -Wno-invalid-token-paste -x assembler-with-cpp %s | FileCheck %s + +#define foo a ## b ## = 0 +int foo; +// CHECK: int ab = 0; |