☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
eval-order6.C
☽
☼
gcc/testsuite/g++.dg/cpp1z/eval-order6.C
code
plain
raw
1
// PR c++/91987
2
// { dg-do run }
3
// { dg-options "-fstrong-eval-order" }
4
5
int
6
foo ()
7
{
8
int x = 5;
9
int r = x << (x = 3, 2);
10
if (x != 3)
11
__builtin_abort ();
12
return r;
13
}
14
15
int
16
main ()
17
{
18
if (foo () != (5 << 2))
19
__builtin_abort ();
20
}