aboutsummaryrefslogtreecommitdiff
path: root/test/SemaTemplate/instantiate-function-2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaTemplate/instantiate-function-2.cpp')
-rw-r--r--test/SemaTemplate/instantiate-function-2.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/SemaTemplate/instantiate-function-2.cpp b/test/SemaTemplate/instantiate-function-2.cpp
index 19a8b61ff193..f5089c962397 100644
--- a/test/SemaTemplate/instantiate-function-2.cpp
+++ b/test/SemaTemplate/instantiate-function-2.cpp
@@ -64,3 +64,28 @@ namespace PR10273 {
(f)(17);
}
}
+
+namespace rdar15464547 {
+ class A {
+ A();
+ };
+
+ template <typename R> class B {
+ public:
+ static void meth1();
+ static void meth2();
+ };
+
+ A::A() {
+ extern int compile_time_assert_failed;
+ B<int>::meth2();
+ }
+
+ template <typename R> void B<R>::meth1() {
+ extern int compile_time_assert_failed;
+ }
+
+ template <typename R> void B<R>::meth2() {
+ extern int compile_time_assert_failed;
+ }
+}