PR testsuite/52641
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr27236.c
blob389b652069d0878949e4f1a09f26755681208c4b
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
4 static inline int inline_read(volatile int *mem)
6 return *mem;
8 __attribute__ ((noinline))
9 int foo_read(volatile int *mem)
11 return inline_read(mem);
13 unsigned int foo(volatile int *mem)
15 foo_read(mem);
16 return foo_read(mem);
19 /* { dg-final { scan-tree-dump-times "foo_read" 5 "optimized" } } */
20 /* { dg-final { cleanup-tree-dump "optimized" } } */