You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
252 B
15 lines
252 B
4 months ago
|
// RUN: %clang_cc1 -emit-llvm %s -o -
|
||
|
// PR3744
|
||
|
struct Empty {};
|
||
|
struct Union {
|
||
|
union {
|
||
|
int zero_arr[0];
|
||
|
} contents;
|
||
|
};
|
||
|
static inline void Foo(struct Union *u) {
|
||
|
int *array = u->contents.zero_arr;
|
||
|
}
|
||
|
static void Bar(struct Union *u) {
|
||
|
Foo(u);
|
||
|
}
|