diff options
Diffstat (limited to 'clang/test/CodeGen/empty-union-init.c')
| -rw-r--r-- | clang/test/CodeGen/empty-union-init.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/CodeGen/empty-union-init.c b/clang/test/CodeGen/empty-union-init.c new file mode 100644 index 00000000000..6b8def9a643 --- /dev/null +++ b/clang/test/CodeGen/empty-union-init.c @@ -0,0 +1,12 @@ +// RUN: clang -emit-llvm < %s -o - + +struct Mem { + union { + } u; +}; + +struct Mem *columnMem(){ + static const struct Mem nullMem = { {} }; +} + + |

