summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/2002-07-30-SubregSetAssertion.c
blob: 39e97b3b4aecc8b78667f1d651df2a0486834638 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %clang_cc1 -emit-llvm %s  -o /dev/null


union X {
  void *B;
};

union X foo() {
  union X A;
  A.B = (void*)123;
  return A;
}