remove the "old" at&t style asmprinter. Unfortunately, most of the
[llvm/avr.git] / test / FrontendC / 2002-08-02-UnionTest.c
blobe2b8c3dd401c82673486269644a84205bdcbe6d1
1 // RUN: %llvmgcc -S %s -o - | llvm-as -o /dev/null
3 /* In this testcase, the return value of foo() is being promotedto a register
4 * which breaks stuff
5 */
6 #include <stdio.h>
8 union X { char X; void *B; int a, b, c, d;};
10 union X foo() {
11 union X Global;
12 Global.B = (void*)123; /* Interesting part */
13 return Global;
16 int main() {
17 union X test = foo();
18 printf("0x%p", test.B);