blob: 947166d54ac44165cd77f5c4474ec4e6d3607fd6 [file] [log] [blame]
Dale Johannesen5b4e4422009-06-23 18:42:26 +00001// RUN: %llvmgcc %s -m32 -S -o - | grep {i32 32} | count 3
2// XFAIL: *
3// XTARGET: powerpc
4// 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}