summaryrefslogtreecommitdiffstats
path: root/test/SemaTemplate/variadic-unsupported.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaTemplate/variadic-unsupported.cpp')
-rw-r--r--test/SemaTemplate/variadic-unsupported.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/SemaTemplate/variadic-unsupported.cpp b/test/SemaTemplate/variadic-unsupported.cpp
new file mode 100644
index 0000000..98f217c
--- /dev/null
+++ b/test/SemaTemplate/variadic-unsupported.cpp
@@ -0,0 +1,5 @@
+// RUN: clang-cc -fsyntax-only -verify %s
+
+// Type parameter packs.
+template <typename ... > struct T1 {}; // expected-error{{variadic templates are only allowed in C++0x}}
+
OpenPOWER on IntegriCloud