aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/unsorted/stuct.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/unsorted/stuct.c')
-rw-r--r--gcc/testsuite/gcc.c-torture/unsorted/stuct.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/unsorted/stuct.c b/gcc/testsuite/gcc.c-torture/unsorted/stuct.c
new file mode 100644
index 00000000000..bf7e2329bd9
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/unsorted/stuct.c
@@ -0,0 +1,16 @@
+struct foo
+{
+ int a, b, c;
+ int arr[10000000];
+};
+
+struct foo s, ss;
+
+main ()
+{
+
+ s.b = 2;
+ s.c = 3;
+ ss.b = 2;
+ ss.c = 3;
+}