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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* PR tree-optimization/64465 */
kono
parents:
diff changeset
2 /* { dg-do compile } */
kono
parents:
diff changeset
3 /* { dg-options "-O2 -fexceptions" } */
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 extern int foo (int *);
kono
parents:
diff changeset
6 extern int bar (int, int);
kono
parents:
diff changeset
7 static inline __attribute__ ((__always_inline__))
kono
parents:
diff changeset
8 int baz (int o)
kono
parents:
diff changeset
9 {
kono
parents:
diff changeset
10 if (__builtin_constant_p (o))
kono
parents:
diff changeset
11 return bar (o, 1);
kono
parents:
diff changeset
12 return bar (o, 0);
kono
parents:
diff changeset
13 }
kono
parents:
diff changeset
14
kono
parents:
diff changeset
15 void
kono
parents:
diff changeset
16 test (void)
kono
parents:
diff changeset
17 {
kono
parents:
diff changeset
18 int s;
kono
parents:
diff changeset
19 foo (&s);
kono
parents:
diff changeset
20 baz (4);
kono
parents:
diff changeset
21 baz (s);
kono
parents:
diff changeset
22 }