diff options
| author | Jordan Rose <jordan_rose@apple.com> | 2013-02-08 22:30:31 +0000 |
|---|---|---|
| committer | Jordan Rose <jordan_rose@apple.com> | 2013-02-08 22:30:31 +0000 |
| commit | a08ed5965caf1593f8faf2175b8e074808281331 (patch) | |
| tree | a5bb1d8c3ea154f674589fc8dfefeab1c7cdc149 /clang/test/Preprocessor | |
| parent | 00d1b59184bbfcfbaffef267426eaf38bcdef4b1 (diff) | |
| download | bcm5719-llvm-a08ed5965caf1593f8faf2175b8e074808281331.tar.gz bcm5719-llvm-a08ed5965caf1593f8faf2175b8e074808281331.zip | |
Simplify logic for avoiding concatenation after numeric constants.
I threw in a couple of test cases for UD-suffixes -- already working, but
it wasn't immediately obvious to me.
llvm-svn: 174767
Diffstat (limited to 'clang/test/Preprocessor')
| -rw-r--r-- | clang/test/Preprocessor/output_paste_avoid.cpp (renamed from clang/test/Preprocessor/output_paste_avoid.c) | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/clang/test/Preprocessor/output_paste_avoid.c b/clang/test/Preprocessor/output_paste_avoid.cpp index 6defd1272b7..689d966e867 100644 --- a/clang/test/Preprocessor/output_paste_avoid.c +++ b/clang/test/Preprocessor/output_paste_avoid.cpp @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -E %s -o - | FileCheck -strict-whitespace %s +// RUN: %clang_cc1 -E -std=c++11 %s -o - | FileCheck -strict-whitespace %s #define y(a) ..a @@ -37,3 +37,11 @@ F: >>equal #define TYPEDEF(guid) typedef [uuid(guid)] TYPEDEF(66504301-BE0F-101A-8BBB-00AA00300CAB) long OLE_COLOR; // CHECK: typedef [uuid(66504301-BE0F-101A-8BBB-00AA00300CAB)] long OLE_COLOR; + +// Be careful with UD-suffixes. +#define StrSuffix() "abc"_suffix +#define IntSuffix() 123_suffix +UD: StrSuffix()ident +UD: IntSuffix()ident +// CHECK: UD: "abc"_suffix ident +// CHECK: UD: 123_suffix ident |

