1 /* PR debug/36977 */
2 /* { dg-do run } */
3 /* { dg-options "-g" } */
4 /* { dg-skip-if "" { *-*-* } { "*" } { "-O0" } } */
5
6 void
foo()7 foo ()
8 {
9 }
10
11 int
main()12 main ()
13 {
14 struct { char c[100]; } cbig;
15 struct { int i[800]; } ibig;
16 struct { long l[900]; } lbig;
17 struct { float f[200]; } fbig;
18 struct { double d[300]; } dbig;
19 struct { short s[400]; } sbig;
20
21 ibig.i[0] = 55; /* { dg-final { gdb-test 30 "ibig.i\[0\]" "55" } } */
22 ibig.i[100] = 5; /* { dg-final { gdb-test 30 "ibig.i\[100\]" "5" } } */
23 cbig.c[0] = '\0'; /* { dg-final { gdb-test 30 "cbig.c\[0\]" "'\\0'" } } */
24 cbig.c[99] = 'A'; /* { dg-final { gdb-test 30 "cbig.c\[99\]" "'A'" } } */
25 fbig.f[100] = 11.0; /* { dg-final { gdb-test 30 "fbig.f\[100\]" "11" } } */
26 dbig.d[202] = 9.0; /* { dg-final { gdb-test 30 "dbig.d\[202\]" "9" } } */
27 sbig.s[90] = 255; /* { dg-final { gdb-test 30 "sbig.s\[90\]" "255" } } */
28 lbig.l[333] = 999; /* { dg-final { gdb-test 30 "lbig.l\[333\]" "999" } } */
29
30 foo ();
31 return 0;
32 }
33