1// RUN: %clang_cc1 -emit-llvm %s -o -
2// PR3744
3struct 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