Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/tree-ssa/pr27236.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* { dg-do compile } */ | |
2 /* { dg-options "-O2 -fdump-tree-optimized" } */ | |
3 | |
4 static inline int inline_read(volatile int *mem) | |
5 { | |
6 return *mem; | |
7 } | |
8 __attribute__ ((noinline)) | |
9 int foo_read(volatile int *mem) | |
10 { | |
11 return inline_read(mem); | |
12 } | |
13 unsigned int foo(volatile int *mem) | |
14 { | |
15 foo_read(mem); | |
16 return foo_read(mem); | |
17 } | |
18 | |
19 /* { dg-final { scan-tree-dump-times "foo_read" 5 "optimized" } } */ |