Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/pr64465.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
rev | line source |
---|---|
111 | 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 } |