1*67e74705SXin Li // REQUIRES: powerpc-registered-target 2*67e74705SXin Li // RUN: %clang_cc1 %s -triple powerpc-pc-linux -emit-llvm -o - | grep {i32 32} | count 3 3*67e74705SXin Li // XFAIL: * 4*67e74705SXin Li // Every printf has 'i32 0' for the GEP of the string; no point counting those. 5*67e74705SXin Li typedef unsigned int Foo __attribute__((aligned(32))); 6*67e74705SXin Li typedef union{Foo:0;}a; 7*67e74705SXin Li typedef union{int x; Foo:0;}b; 8*67e74705SXin Li extern int printf(const char*, ...); main()9*67e74705SXin Limain() { 10*67e74705SXin Li printf("%ld\n", sizeof(a)); 11*67e74705SXin Li printf("%ld\n", __alignof__(a)); 12*67e74705SXin Li printf("%ld\n", sizeof(b)); 13*67e74705SXin Li printf("%ld\n", __alignof__(b)); 14*67e74705SXin Li } 15