Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/pr64465.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children | 1830386684a0 |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* PR tree-optimization/64465 */ | |
2 /* { dg-do compile } */ | |
3 /* { dg-options "-O2 -fexceptions" } */ | |
4 | |
5 extern int foo (int *); | |
6 extern int bar (int, int); | |
7 static inline __attribute__ ((__always_inline__)) | |
8 int baz (int o) | |
9 { | |
10 if (__builtin_constant_p (o)) | |
11 return bar (o, 1); | |
12 return bar (o, 0); | |
13 } | |
14 | |
15 void | |
16 test (void) | |
17 { | |
18 int s; | |
19 foo (&s); | |
20 baz (4); | |
21 baz (s); | |
22 } |