diff options
author | Alexis Hunt <alercah@gmail.com> | 2009-11-28 04:44:28 +0000 |
---|---|---|
committer | Alexis Hunt <alercah@gmail.com> | 2009-11-28 04:44:28 +0000 |
commit | 344585006c128b7e89f524d4cd150ef1dd70978c (patch) | |
tree | c94194aeb49acf5e299004e3e417dff7f5ae98a7 /clang/test/Parser | |
parent | c9e3e6ff29df3ea0bd584c304096c1ce654a3c16 (diff) | |
download | bcm5719-llvm-344585006c128b7e89f524d4cd150ef1dd70978c.tar.gz bcm5719-llvm-344585006c128b7e89f524d4cd150ef1dd70978c.zip |
Add Parser support for C++0x literal operators ('operator "" i').
DeclarationName can't handle them yet, so right now Parser just errors out on them.
llvm-svn: 90027
Diffstat (limited to 'clang/test/Parser')
-rw-r--r-- | clang/test/Parser/cxx0x-literal-operators.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Parser/cxx0x-literal-operators.cpp b/clang/test/Parser/cxx0x-literal-operators.cpp new file mode 100644 index 00000000000..b01cf06edbd --- /dev/null +++ b/clang/test/Parser/cxx0x-literal-operators.cpp @@ -0,0 +1,5 @@ +// RUN: clang-cc -fsyntax-only -verify -std=c++0x %s + +void operator "" (); // expected-error {{expected identifier}} +void operator "k" foo(); // expected-error {{string literal after 'operator' must be '""'}} \ + // expected-error {{C++0x literal operator support is currently under development}}
\ No newline at end of file |