blob: 8787bd453e6570eefe3ca413b9b8bcd0bf208330 [file] [log] [blame]
Eli Friedmancb3194f2011-11-05 00:49:47 +00001// RUN: %clang_cc1 %s -triple powerpc-pc-linux -emit-llvm -o - | grep {i32 32} | count 3
Eric Christopher3883e662011-07-26 22:17:02 +00002// XFAIL: *
Eric Christopher3883e662011-07-26 22:17:02 +00003// Every printf has 'i32 0' for the GEP of the string; no point counting those.
4typedef unsigned int Foo __attribute__((aligned(32)));
5typedef union{Foo:0;}a;
6typedef union{int x; Foo:0;}b;
7extern int printf(const char*, ...);
8main() {
9 printf("%ld\n", sizeof(a));
10 printf("%ld\n", __alignof__(a));
11 printf("%ld\n", sizeof(b));
12 printf("%ld\n", __alignof__(b));
13}