diff options
Diffstat (limited to 'test/CodeGen/address-space-field1.c')
-rw-r--r-- | test/CodeGen/address-space-field1.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/CodeGen/address-space-field1.c b/test/CodeGen/address-space-field1.c index e9c1871..c6b3181 100644 --- a/test/CodeGen/address-space-field1.c +++ b/test/CodeGen/address-space-field1.c @@ -1,6 +1,6 @@ // RUN: %clang_cc1 -emit-llvm -triple x86_64-apple-darwin10 < %s -o - | FileCheck %s // CHECK:%struct.S = type { i32, i32 } -// CHECK:define void @test_addrspace(%struct.S addrspace(1)* %p1, %struct.S addrspace(2)* %p2) nounwind +// CHECK:define void @test_addrspace(%struct.S addrspace(1)* %p1, %struct.S addrspace(2)* %p2) [[NUW:#[0-9]+]] // CHECK: [[p1addr:%.*]] = alloca %struct.S addrspace(1)* // CHECK: [[p2addr:%.*]] = alloca %struct.S addrspace(2)* // CHECK: store %struct.S addrspace(1)* %p1, %struct.S addrspace(1)** [[p1addr]] @@ -36,3 +36,5 @@ void test_addrspace(__addr1 S* p1, __addr2 S*p2) { p1->a = p2->b; p1->b = p2->a; } + +// CHECK: attributes [[NUW]] = { nounwind{{.*}} } |