summaryrefslogtreecommitdiffstats
path: root/clang/test/CXX/drs/dr2xx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CXX/drs/dr2xx.cpp')
-rw-r--r--clang/test/CXX/drs/dr2xx.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/CXX/drs/dr2xx.cpp b/clang/test/CXX/drs/dr2xx.cpp
new file mode 100644
index 00000000000..b74c6180845
--- /dev/null
+++ b/clang/test/CXX/drs/dr2xx.cpp
@@ -0,0 +1,12 @@
+// RUN: %clang_cc1 -std=c++98 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors
+// RUN: %clang_cc1 -std=c++11 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors
+// RUN: %clang_cc1 -std=c++1y %s -verify -fexceptions -fcxx-exceptions -pedantic-errors
+
+namespace dr200 { // dr200: dup 214
+ template <class T> T f(int);
+ template <class T, class U> T f(U) = delete; // expected-error 0-1{{extension}}
+
+ void g() {
+ f<int>(1);
+ }
+}
OpenPOWER on IntegriCloud