Eric Christopher | 3883e66 | 2011-07-26 22:17:02 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -emit-llvm %s -o - |
2 | // PR3744 | ||||
3 | struct Empty {}; | ||||
4 | struct Union { | ||||
5 | union { | ||||
6 | int zero_arr[0]; | ||||
7 | } contents; | ||||
8 | }; | ||||
9 | static inline void Foo(struct Union *u) { | ||||
10 | int *array = u->contents.zero_arr; | ||||
11 | } | ||||
12 | static void Bar(struct Union *u) { | ||||
13 | Foo(u); | ||||
14 | } |