summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/cxx98-compat.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-03-05 04:02:15 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-03-05 04:02:15 +0000
commit5cc2c6eb67b6e5361bbe96f79b519fd62ec666d6 (patch)
tree2c1f49624f8fd182adf9d9473f9b9c6f1229183e /test/SemaCXX/cxx98-compat.cpp
parent9d008fd572fa3411e93084d51f12ea12a998786c (diff)
Lexing support for user-defined literals. Currently these lex as the same token
kinds as the underlying string literals, and we silently drop the ud-suffix; those issues will be fixed by subsequent patches. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152012 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/cxx98-compat.cpp')
-rw-r--r--test/SemaCXX/cxx98-compat.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/SemaCXX/cxx98-compat.cpp b/test/SemaCXX/cxx98-compat.cpp
index 8c15f5adc1..e9ba0dffc3 100644
--- a/test/SemaCXX/cxx98-compat.cpp
+++ b/test/SemaCXX/cxx98-compat.cpp
@@ -50,7 +50,7 @@ int InitList() {
return { 0 }; // expected-warning {{generalized initializer lists are incompatible with C++98}}
}
-int operator""_hello(const char *); // expected-warning {{literal operators are incompatible with C++98}}
+int operator"" _hello(const char *); // expected-warning {{literal operators are incompatible with C++98}}
enum EnumFixed : int { // expected-warning {{enumeration types with a fixed underlying type are incompatible with C++98}}
};