aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/instantiate-blocks.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/instantiate-blocks.cpp')
-rw-r--r--test/SemaCXX/instantiate-blocks.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/SemaCXX/instantiate-blocks.cpp b/test/SemaCXX/instantiate-blocks.cpp
index bb0f8d881d36..dbcef500b579 100644
--- a/test/SemaCXX/instantiate-blocks.cpp
+++ b/test/SemaCXX/instantiate-blocks.cpp
@@ -30,3 +30,12 @@ int main(void)
noret((float)0.0, double(0.0)); // expected-note {{in instantiation of function template specialization 'noret<float, double>' requested here}}
}
+namespace rdar41200624 {
+template <class T>
+struct S {
+ int (^p)() = ^{ return 0; };
+ T (^t)() = ^{ return T{}; };
+ T s = ^{ return T{}; }();
+};
+S<int> x;
+}