libgfortran/ChangeLog:
[official-gcc.git] / gcc / testsuite / gcc.dg / pr37879.c
blob5dd252782c74fa7b45bc1665190d02c1a6946cf9
1 /* PR tree-optimization/37879 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2" } */
5 static inline void bar (int) __attribute__ ((noreturn));
6 void baz () __attribute__ ((noreturn));
8 inline int
9 foo (int i)
11 return i;
14 int i = 23;
15 static inline void
16 bar (int j)
18 if (j)
19 asm ("");
20 } /* { dg-warning "does return" } */
22 void
23 baz ()
25 int j;
26 bar (foo (j = i++));
27 asm ("");