testsuite: Skip analyzer tests on AIX.
[official-gcc.git] / gcc / testsuite / c-c++-common / spec-barrier-2.c
bloba27ec54f0d3822f503103f2b475c6978b70aac76
1 /* { dg-do run } */
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. */
7 int x = 3;
8 volatile int y = 9;
10 int main ()
12 int z = __builtin_speculation_safe_value (x, y++);
13 if (z != 3 || y != 10)
14 __builtin_abort ();
15 return 0;
18 /* { dg-prune-output "this target does not define a speculation barrier;" } */