summaryrefslogtreecommitdiff
path: root/test/CodeGenObjCXX/lambda-expressions.mm
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-02-20 07:22:19 +0000
committerBill Wendling <isanbard@gmail.com>2013-02-20 07:22:19 +0000
commitf7a9da053f5bd6c18450c1796d953b42c3b7ad3a (patch)
tree3a4accecdb98419478035c3bf5be57df768e0625 /test/CodeGenObjCXX/lambda-expressions.mm
parent5251abea41b446c26e3239c8dd6c7edea6fc335d (diff)
downloadclang-f7a9da053f5bd6c18450c1796d953b42c3b7ad3a.tar.gz
Modify the tests to use attribute group references instead of listing the
function attributes. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175606 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenObjCXX/lambda-expressions.mm')
-rw-r--r--test/CodeGenObjCXX/lambda-expressions.mm13
1 files changed, 11 insertions, 2 deletions
diff --git a/test/CodeGenObjCXX/lambda-expressions.mm b/test/CodeGenObjCXX/lambda-expressions.mm
index 6361d65569..ddc24a3bd2 100644
--- a/test/CodeGenObjCXX/lambda-expressions.mm
+++ b/test/CodeGenObjCXX/lambda-expressions.mm
@@ -25,15 +25,24 @@ typedef int (^fp)();
fp global;
void f2() { global = []{ return 3; }; }
-// MRC: define void @_Z2f2v() nounwind "target-features"={{.*}} {
+// MRC: define void @_Z2f2v() #1 {
// MRC: store i8* bitcast (i32 (i8*)* @___Z2f2v_block_invoke to i8*),
// MRC-NOT: call
// MRC: ret void
// ("global" contains a dangling pointer after this function runs.)
-// ARC: define void @_Z2f2v() nounwind "target-features"={{.*}} {
+// ARC: define void @_Z2f2v() #1 {
// ARC: store i8* bitcast (i32 (i8*)* @___Z2f2v_block_invoke to i8*),
// ARC: call i8* @objc_retainBlock
// ARC: call void @objc_release
// ARC: define internal i32 @___Z2f2v_block_invoke
// ARC: call i32 @"_ZZ2f2vENK3$_1clEv
+
+// ARC: attributes #0 = { "target-features"={{.*}} }
+// ARC: attributes #1 = { nounwind "target-features"={{.*}} }
+// ARC: attributes #2 = { inlinehint nounwind "target-features"={{.*}} }
+
+// MRC: attributes #0 = { "target-features"={{.*}} }
+// MRC: attributes #1 = { nounwind "target-features"={{.*}} }
+// MRC: attributes #2 = { inlinehint nounwind "target-features"={{.*}} }
+// MRC: attributes #3 = { nonlazybind }