summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenObjCXX/lambda-expressions.mm
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2013-06-13 20:56:27 +0000
committerEli Friedman <eli.friedman@gmail.com>2013-06-13 20:56:27 +0000
commitef10282a0f6d7861b620428b0de3ec1353e97683 (patch)
tree4eb69ba42db2beb0cd6c0dd08a332916cdd85d4d /clang/test/CodeGenObjCXX/lambda-expressions.mm
parent280e5cb653d2c90dbfae506b4c7ddf6b3376c639 (diff)
downloadbcm5719-llvm-ef10282a0f6d7861b620428b0de3ec1353e97683.tar.gz
bcm5719-llvm-ef10282a0f6d7861b620428b0de3ec1353e97683.zip
Followup to r183931 to fix the lambda conversion-to-block-pointer member.
llvm-svn: 183942
Diffstat (limited to 'clang/test/CodeGenObjCXX/lambda-expressions.mm')
-rw-r--r--clang/test/CodeGenObjCXX/lambda-expressions.mm11
1 files changed, 10 insertions, 1 deletions
diff --git a/clang/test/CodeGenObjCXX/lambda-expressions.mm b/clang/test/CodeGenObjCXX/lambda-expressions.mm
index c73e1727d63..acb8efb4b59 100644
--- a/clang/test/CodeGenObjCXX/lambda-expressions.mm
+++ b/clang/test/CodeGenObjCXX/lambda-expressions.mm
@@ -60,6 +60,15 @@ void take_block(void (^block)()) { block(); }
}
@end
-// ARC: attributes [[NUW]] = { nounwind{{.*}} }
+typedef int (^fptr)();
+template<typename T> struct StaticMembers {
+ static fptr f;
+};
+template<typename T>
+fptr StaticMembers<T>::f = [] { auto f = []{return 5;}; return fptr(f); }();
+template fptr StaticMembers<float>::f;
+// ARC: define linkonce_odr i32 ()* @_ZZNK13StaticMembersIfE1fMUlvE_clEvENKUlvE_cvU13block_pointerFivEEv
+
+// ARC: attributes [[NUW]] = { nounwind{{.*}} }
// MRC: attributes [[NUW]] = { nounwind{{.*}} }
OpenPOWER on IntegriCloud