summaryrefslogtreecommitdiffstats
path: root/test/FrontendC/2009-03-08-ZeroEltStructCrash.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/FrontendC/2009-03-08-ZeroEltStructCrash.c')
-rw-r--r--test/FrontendC/2009-03-08-ZeroEltStructCrash.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/test/FrontendC/2009-03-08-ZeroEltStructCrash.c b/test/FrontendC/2009-03-08-ZeroEltStructCrash.c
deleted file mode 100644
index 454e0fb..0000000
--- a/test/FrontendC/2009-03-08-ZeroEltStructCrash.c
+++ /dev/null
@@ -1,14 +0,0 @@
-// RUN: %llvmgcc -S %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);
-}
OpenPOWER on IntegriCloud