diff options
author | Alp Toker <alp@nuanti.com> | 2014-05-21 06:13:51 +0000 |
---|---|---|
committer | Alp Toker <alp@nuanti.com> | 2014-05-21 06:13:51 +0000 |
commit | b05e0b53b9dde9e3eb47f9e42fcd79cd6448f00e (patch) | |
tree | 4e356a69ec7bae6c0054907d029300f4c18c6080 /clang/test/Preprocessor/ucn-pp-identifier.c | |
parent | 161e4db52f657eac37d89e655c0772f98e97d989 (diff) | |
download | bcm5719-llvm-b05e0b53b9dde9e3eb47f9e42fcd79cd6448f00e.tar.gz bcm5719-llvm-b05e0b53b9dde9e3eb47f9e42fcd79cd6448f00e.zip |
Preprocessor: support defined() with operator names for MS compatibility
Also flesh out missing tests, improve diagnostic QOI and fix a couple of corner
cases found in the process.
Fixes PR10606.
llvm-svn: 209276
Diffstat (limited to 'clang/test/Preprocessor/ucn-pp-identifier.c')
-rw-r--r-- | clang/test/Preprocessor/ucn-pp-identifier.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/Preprocessor/ucn-pp-identifier.c b/clang/test/Preprocessor/ucn-pp-identifier.c index 6936ed92cb5..f045e38e94a 100644 --- a/clang/test/Preprocessor/ucn-pp-identifier.c +++ b/clang/test/Preprocessor/ucn-pp-identifier.c @@ -24,9 +24,9 @@ #endif // Make sure we reject disallowed UCNs -#define \ufffe // expected-error {{macro names must be identifiers}} -#define \U10000000 // expected-error {{macro names must be identifiers}} -#define \u0061 // expected-error {{character 'a' cannot be specified by a universal character name}} expected-error {{macro names must be identifiers}} +#define \ufffe // expected-error {{macro name must be an identifier}} +#define \U10000000 // expected-error {{macro name must be an identifier}} +#define \u0061 // expected-error {{character 'a' cannot be specified by a universal character name}} expected-error {{macro name must be an identifier}} // FIXME: Not clear what our behavior should be here; \u0024 is "$". #define a\u0024 // expected-warning {{whitespace}} |