blob: 39e97b3b4aecc8b78667f1d651df2a0486834638 [file] [log] [blame]
Eric Christopher3883e662011-07-26 22:17:02 +00001// RUN: %clang_cc1 -emit-llvm %s -o /dev/null
2
3
4union X {
5 void *B;
6};
7
8union X foo() {
9 union X A;
10 A.B = (void*)123;
11 return A;
12}