Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGen / PowerPC / 2009-02-13-zerosize-union-field-ppc.c
blobeabf46386db08dbffbeaea6efff4561b5f1e2480
1 // REQUIRES: powerpc-registered-target
2 // RUN: %clang_cc1 %s -triple powerpc-pc-linux -emit-llvm -o - | grep {i32 32} | count 3
3 // XFAIL: *
4 // Every printf has 'i32 0' for the GEP of the string; no point counting those.
5 typedef unsigned int Foo __attribute__((aligned(32)));
6 typedef union{Foo:0;}a;
7 typedef union{int x; Foo:0;}b;
8 extern int printf(const char*, ...);
9 main() {
10 printf("%ld\n", sizeof(a));
11 printf("%ld\n", __alignof__(a));
12 printf("%ld\n", sizeof(b));
13 printf("%ld\n", __alignof__(b));