PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 961223-1.c
blobd31962aa4542a626e7886c10561a256857bd855f
1 /* { dg-options "-fgnu89-inline" } */
3 extern void exit (int);
4 extern void abort (void);
6 struct s {
7 double d;
8 };
10 inline struct s
11 sub (struct s s)
13 s.d += 1.0;
14 return s;
17 int
18 main ()
20 struct s t = { 2.0 };
21 t = sub (t);
22 if (t.d != 3.0)
23 abort ();
24 exit (0);