summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser
diff options
context:
space:
mode:
authorAlexis Hunt <alercah@gmail.com>2010-01-13 09:01:02 +0000
committerAlexis Hunt <alercah@gmail.com>2010-01-13 09:01:02 +0000
commitc88db06565fc8d07c81f509e44c20a883b560aef (patch)
tree5d6deb29bb4e70428713a38b2eb08a7e2f43c6a3 /clang/test/Parser
parent10e2f7264e3454b8dc21d5c03b56014c191ef68d (diff)
downloadbcm5719-llvm-c88db06565fc8d07c81f509e44c20a883b560aef.tar.gz
bcm5719-llvm-c88db06565fc8d07c81f509e44c20a883b560aef.zip
Implement semantic checking for C++ literal operators.
This now rejects literal operators that don't meet the requirements. Templates are not yet checked for. llvm-svn: 93315
Diffstat (limited to 'clang/test/Parser')
-rw-r--r--clang/test/Parser/cxx0x-literal-operators.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/Parser/cxx0x-literal-operators.cpp b/clang/test/Parser/cxx0x-literal-operators.cpp
index 830754e56ae..30b290382cb 100644
--- a/clang/test/Parser/cxx0x-literal-operators.cpp
+++ b/clang/test/Parser/cxx0x-literal-operators.cpp
@@ -1,5 +1,5 @@
// RUN: %clang_cc1 -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 '""'}}
-void operator "" tester (int);
+void operator "" (const char *); // expected-error {{expected identifier}}
+void operator "k" foo(const char *); // expected-error {{string literal after 'operator' must be '""'}}
+void operator "" tester (const char *);
OpenPOWER on IntegriCloud