diff options
author | Jordan Rose <jordan_rose@apple.com> | 2013-01-24 20:50:52 +0000 |
---|---|---|
committer | Jordan Rose <jordan_rose@apple.com> | 2013-01-24 20:50:52 +0000 |
commit | 62db5066e91e966b4b31fedd2a21fb9ab28118be (patch) | |
tree | 1e9fcabda59c48517a55e69325e7d6abf62cee2c /clang/test/Preprocessor/ucn-pp-identifier.c | |
parent | 4246ae0089571a1cbf357d7c4570e07c0193733c (diff) | |
download | bcm5719-llvm-62db5066e91e966b4b31fedd2a21fb9ab28118be.tar.gz bcm5719-llvm-62db5066e91e966b4b31fedd2a21fb9ab28118be.zip |
Add a fixit for \U1234 -> \u1234.
llvm-svn: 173371
Diffstat (limited to 'clang/test/Preprocessor/ucn-pp-identifier.c')
-rw-r--r-- | clang/test/Preprocessor/ucn-pp-identifier.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/ucn-pp-identifier.c b/clang/test/Preprocessor/ucn-pp-identifier.c index f4afa91ed3a..b6e46516d83 100644 --- a/clang/test/Preprocessor/ucn-pp-identifier.c +++ b/clang/test/Preprocessor/ucn-pp-identifier.c @@ -1,5 +1,6 @@ // RUN: %clang_cc1 %s -fsyntax-only -std=c99 -pedantic -verify -Wundef // RUN: %clang_cc1 %s -fsyntax-only -x c++ -pedantic -verify -Wundef +// RUN: %clang_cc1 %s -fsyntax-only -std=c99 -pedantic -fdiagnostics-parseable-fixits -Wundef 2>&1 | FileCheck -strict-whitespace %s #define \u00FC #define a\u00FD() 0 @@ -95,3 +96,11 @@ C 1 #else #error "Line splicing failed to produce UCNs" #endif + + +#define capital_u_\U00FC +// expected-warning@-1 {{incomplete universal character name}} expected-note@-1 {{did you mean to use '\u'?}} expected-warning@-1 {{whitespace}} +// CHECK: note: did you mean to use '\u'? +// CHECK-NEXT: #define capital_u_\U00FC +// CHECK-NEXT: {{^ \^}} +// CHECK-NEXT: {{^ u}} |