summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/packed-arrays.c
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2011-05-05 21:19:14 +0000
committerFariborz Jahanian <fjahanian@apple.com>2011-05-05 21:19:14 +0000
commit9f1071831fe040e2ccae75a2142b957ca02d53c2 (patch)
treee92d7f5f4730298339f1bfc9bf0eb44c53f065a7 /clang/test/CodeGen/packed-arrays.c
parent59b6bfdbc6386c95c6e9c5b7ed31608439d2326b (diff)
downloadbcm5719-llvm-9f1071831fe040e2ccae75a2142b957ca02d53c2.tar.gz
bcm5719-llvm-9f1071831fe040e2ccae75a2142b957ca02d53c2.zip
__alignof attribute on the field must consider
packed attribute on the field. //rdar://9217290 llvm-svn: 130948
Diffstat (limited to 'clang/test/CodeGen/packed-arrays.c')
-rw-r--r--clang/test/CodeGen/packed-arrays.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/clang/test/CodeGen/packed-arrays.c b/clang/test/CodeGen/packed-arrays.c
index 785db4d2dde..0c8bb6c7bd4 100644
--- a/clang/test/CodeGen/packed-arrays.c
+++ b/clang/test/CodeGen/packed-arrays.c
@@ -34,10 +34,8 @@ int align3 = __alignof(struct s3);
// CHECK: @align0_x = global i32 1
int align0_x = __alignof(((struct s0*) 0)->x);
-// We are currently incompatible with GCC here. <rdar://problem/9217290>
//
-// CHECK-XFAIL: @align1_x = global i32 1
-// CHECK: @align1_x = global i32 4
+// CHECK: @align1_x = global i32 1
int align1_x = __alignof(((struct s1*) 0)->x);
// CHECK: @align2_x = global i32 1
int align2_x = __alignof(((struct s2*) 0)->x);
@@ -66,22 +64,22 @@ int f0_b(struct s0 *a) {
return *(a->x + 1);
}
+// Note that we are incompatible with GCC on this example.
+//
// CHECK: define i32 @f1_a
-// CHECK: load i32* %{{.*}}, align 4
+// CHECK: load i32* %{{.*}}, align 1
// CHECK: }
// CHECK: define i32 @f1_b
// CHECK: load i32* %{{.*}}, align 4
// CHECK: }
-// Note that we are incompatible with GCC on these two examples.
+// Note that we are incompatible with GCC on this example.
//
// CHECK: define i32 @f1_c
-// CHECK-XFAIL: load i32* %{{.*}}, align 1
// CHECK: load i32* %{{.*}}, align 4
// CHECK: }
// CHECK: define i32 @f1_d
-// CHECK-XFAIL: load i32* %{{.*}}, align 1
-// CHECK: load i32* %{{.*}}, align 4
+// CHECK: load i32* %{{.*}}, align 1
// CHECK: }
int f1_a(struct s1 *a) {
return a->x[1];
OpenPOWER on IntegriCloud