summaryrefslogtreecommitdiffstats
path: root/test/FrontendC/2007-03-06-VarSizeInStruct2.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/FrontendC/2007-03-06-VarSizeInStruct2.c')
-rw-r--r--test/FrontendC/2007-03-06-VarSizeInStruct2.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/FrontendC/2007-03-06-VarSizeInStruct2.c b/test/FrontendC/2007-03-06-VarSizeInStruct2.c
new file mode 100644
index 0000000..13bc3aa
--- /dev/null
+++ b/test/FrontendC/2007-03-06-VarSizeInStruct2.c
@@ -0,0 +1,8 @@
+// RUN: %llvmgcc %s -S -o -
+char p (int n) {
+ struct f {
+ char w; char x[n]; char y[n];
+ } F;
+
+ return F.x[0];
+}
OpenPOWER on IntegriCloud