Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
eval-order6.C
blob: c8fb0b6dc9c18269dcfea75963cd8d2ec47cd2f3 [
file
] [
log
] [
blame
]
// PR c++/91987
// { dg-do run }
// { dg-options "-fstrong-eval-order" }
int
foo
()
{
int
x
=
5
;
int
r
=
x
<<
(
x
=
3
,
2
);
if
(
x
!=
3
)
__builtin_abort
();
return
r
;
}
int
main
()
{
if
(
foo
()
!=
(
5
<<
2
))
__builtin_abort
();
}