Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
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
;
}