summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/PR8012.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/PR8012.cpp')
-rw-r--r--test/SemaCXX/PR8012.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/SemaCXX/PR8012.cpp b/test/SemaCXX/PR8012.cpp
new file mode 100644
index 0000000..f2f07ad
--- /dev/null
+++ b/test/SemaCXX/PR8012.cpp
@@ -0,0 +1,3 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++0x
+
+void foo (int operator+); // expected-error{{cannot be the name of a parameter}}
OpenPOWER on IntegriCloud