blob: 25bf15705611aa18ac2b7a1334305a5d76e1463a [file] [log] [blame]
Chris Lattner20f15aa2002-08-02 16:26:08 +00001/* In this testcase, the return value of foo() is being promotedto a register
2 * which breaks stuff
3 */
4#include <stdio.h>
5
6union X { char X; void *B; int a, b, c, d;};
7
8union X foo() {
9 union X Global;
10 Global.B = (void*)123; /* Interesting part */
11 return Global;
12}
13
14void main() {
15 union X test = foo();
16 printf("0x%p", test.B);
17}