summaryrefslogtreecommitdiffstats
path: root/test/FrontendC/pr4349.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/FrontendC/pr4349.c')
-rw-r--r--test/FrontendC/pr4349.c38
1 files changed, 0 insertions, 38 deletions
diff --git a/test/FrontendC/pr4349.c b/test/FrontendC/pr4349.c
deleted file mode 100644
index 49c89e2..0000000
--- a/test/FrontendC/pr4349.c
+++ /dev/null
@@ -1,38 +0,0 @@
-// RUN: %llvmgcc %s -S -O0 -o - | FileCheck %s
-// PR 4349
-
-union reg
-{
- unsigned char b[2][2];
- unsigned short w[2];
- unsigned int d;
-};
-struct cpu
-{
- union reg pc;
-};
-extern struct cpu cpu;
-struct svar
-{
- void *ptr;
-};
-// CHECK: @svars1 = global [1 x %struct.svar] [%struct.svar { i8* bitcast (%struct.cpu* @cpu to i8*) }]
-struct svar svars1[] =
-{
- { &((cpu.pc).w[0]) }
-};
-// CHECK: @svars2 = global [1 x %struct.svar] [%struct.svar { i8* getelementptr ([2 x i8]* bitcast (%struct.cpu* @cpu to [2 x i8]*), i{{[0-9]+}} 0, i{{[0-9]+}} 1) }]
-struct svar svars2[] =
-{
- { &((cpu.pc).b[0][1]) }
-};
-// CHECK: @svars3 = global [1 x %struct.svar] [%struct.svar { i8* bitcast (i16* getelementptr ([2 x i16]* bitcast (%struct.cpu* @cpu to [2 x i16]*), i{{[0-9]+}} 0, i{{[0-9]+}} 1) to i8*) }]
-struct svar svars3[] =
-{
- { &((cpu.pc).w[1]) }
-};
-// CHECK: @svars4 = global [1 x %struct.svar] [%struct.svar { i8* getelementptr ([2 x [2 x i8]]* bitcast (%struct.cpu* @cpu to [2 x [2 x i8]]*), i{{[0-9]+}} 0, i{{[0-9]+}} 1, i{{[0-9]+}} 1) }]
-struct svar svars4[] =
-{
- { &((cpu.pc).b[1][1]) }
-};
OpenPOWER on IntegriCloud