brintos

brintos / llvm-project-archived public Read only

0
0
Text · 252 B · b530eb7 Raw
15 lines · c
1// RUN: %clang_cc1 -emit-llvm %s -o - 2// PR37443struct Empty {};4struct Union {5 union {6   int zero_arr[0];7 } contents;8};9static inline void Foo(struct Union *u) {10 int *array = u->contents.zero_arr;11}12static void Bar(struct Union *u) {13 Foo(u);14}15