aboutsummaryrefslogtreecommitdiff
path: root/test/Parser/DelayedTemplateParsing.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2012-06-28 21:43:01 +0000
committerDouglas Gregor <dgregor@apple.com>2012-06-28 21:43:01 +0000
commit0963017dcbc32176c79a251c3ab23bc35ac784e5 (patch)
tree22f32143d4d25187a37943d78a861f6827250766 /test/Parser/DelayedTemplateParsing.cpp
parent9fc5b007726ef8a2fa923a95f047a51477704121 (diff)
Support the use of "=delete" and "=default" with delayed template
parsing. Fixes <rdar://problem/11700604>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159380 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser/DelayedTemplateParsing.cpp')
-rw-r--r--test/Parser/DelayedTemplateParsing.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/test/Parser/DelayedTemplateParsing.cpp b/test/Parser/DelayedTemplateParsing.cpp
index 9737c731bd..77b47239f4 100644
--- a/test/Parser/DelayedTemplateParsing.cpp
+++ b/test/Parser/DelayedTemplateParsing.cpp
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fms-extensions -fdelayed-template-parsing -fsyntax-only -verify %s
+// RUN: %clang_cc1 -fms-extensions -fdelayed-template-parsing -fsyntax-only -verify -std=c++11 %s
template <class T>
class A {
@@ -90,3 +90,14 @@ Callback Bind() {
}
}
+
+namespace rdar11700604 {
+ template<typename T> void foo() = delete;
+
+ struct X {
+ X() = default;
+
+ template<typename T> void foo() = delete;
+ };
+}
+