blob: 63cc2e74e190ee73c847b7750864d5182d5feb5c [file] [log] [blame]
/* PR c/19449 */
extern void abort (void);
int y;
int z = __builtin_choose_expr (!__builtin_constant_p (y), 3, 4);
int
foo (int x)
{
return __builtin_choose_expr (!__builtin_constant_p (x), 3, y++);
}
int
main ()
{
if (y || z != 3 || foo (4) != 3)
abort ();
return 0;
}