brintos

brintos / llvm-project-archived public Read only

0
0
Text · 297 B · 5aa4f2e Raw
24 lines · c
1// PR 14192 3// RUN: %clang_cc1   -O2 %s -emit-llvm -o - | grep "ret i32 1"4struct A {5  short x;6  long long :0;7};8 9struct B {10  char a;11  char b;12  unsigned char i;13};14 15union X { struct A a; struct B b; };16 17int check(void) {18  union X x, y;19 20  y.b.i = 0xff;21  x = y;22  return (x.b.i == 0xff);23}24