From 344585006c128b7e89f524d4cd150ef1dd70978c Mon Sep 17 00:00:00 2001 From: Alexis Hunt Date: Sat, 28 Nov 2009 04:44:28 +0000 Subject: 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 --- clang/test/Parser/cxx0x-literal-operators.cpp | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 clang/test/Parser/cxx0x-literal-operators.cpp (limited to 'clang/test/Parser') 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 -- cgit v1.2.1