diff options
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/unsorted/str.c')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/unsorted/str.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/unsorted/str.c b/gcc/testsuite/gcc.c-torture/unsorted/str.c new file mode 100644 index 000000000..d2dec4b23 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/unsorted/str.c @@ -0,0 +1,13 @@ +typedef struct +{ + char a; + char b; +} foo; + +bar () +{ + foo foobar[100]; + foobar[1].a = 'a'; + foobar[2].a = 'b'; + barfoo (foobar); +} |