2 /* { dg-additional-options "-Wno-volatile" { target c++ } } */
4 /* Even on targets that don't need the optional failval parameter,
5 side-effects on the operand should still be calculated. */
12 int z
= __builtin_speculation_safe_value (x
, y
++);
13 if (z
!= 3 || y
!= 10)
18 /* { dg-prune-output "this target does not define a speculation barrier;" } */