summaryrefslogtreecommitdiffstats
path: root/test/FrontendC/2002-07-30-SubregSetAssertion.c
blob: 6d4f9f62058166f57c5a447bc95c1ef14bf6c4a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null


union X {
  void *B;
};

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