OpenACC 'nohost' clause: harmonize 'libgomp.oacc-{c-c++-common,fortran}/routine-nohos...
[official-gcc.git] / gcc / testsuite / gcc.dg / pr64465.c
blobd1d17493acc95aa7aac3caa214956eaf38d98e6a
1 /* PR tree-optimization/64465 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fexceptions" } */
4 /* { dg-require-effective-target exceptions } */
6 extern int foo (int *);
7 extern int bar (int, int);
8 static inline __attribute__ ((__always_inline__))
9 int baz (int o)
11 if (__builtin_constant_p (o))
12 return bar (o, 1);
13 return bar (o, 0);
16 void
17 test (void)
19 int s;
20 foo (&s);
21 baz (4);
22 baz (s);