blob: 044cbd5a556775d3af70c2e229f73f149af984f3 [file] [log] [blame]
Dale Johannesen7d57e142009-02-14 00:19:28 +00001// RUN: %llvmgcc %s -m32 -S -o - | grep {i32 1} | count 1
2// RUN: %llvmgcc %s -m32 -S -o - | grep {i32 4} | count 2
3// 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}