Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/c-c++-common/spec-barrier-2.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | |
children | 1830386684a0 |
line wrap: on
line source
/* { dg-do run } */ /* Even on targets that don't need the optional failval parameter, side-effects on the operand should still be calculated. */ int x = 3; volatile int y = 9; int main () { int z = __builtin_speculation_safe_value (x, y++); if (z != 3 || y != 10) __builtin_abort (); return 0; } /* { dg-prune-output "this target does not define a speculation barrier;" } */