Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
tm
/
composite1.C
blob: 6e823176128aa58822d60d0dfca7027f8e25a0cd [
file
] [
log
] [
blame
]
// Test for composite pointer type.
// { dg-options -fgnu-tm }
void
f
(
bool
b
)
{
void
(*
p
)()
transaction_safe
=
0
;
void
(*
g
)()
=
0
;
g
=
b
?
p
:
g
;
// OK
p
=
b
?
p
:
g
;
// { dg-error "" }
p
==
g
;
p
!=
g
;
}