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