Sign in
gnu
/
gcc
/
a6d3012b274f38b20e2a57162106f625746af6c6
/
.
/
gcc
/
testsuite
/
gdc.test
/
compilable
/
test8509.d
blob: a9072231fe8c1643f872dd3eb2b665d1d66a216b [
file
] [
log
] [
blame
]
module
test8509
;
enum
E
:
string
{
a
=
"hello"
,
b
=
"world"
}
struct
S
{
E opCat
(
S s
)
{
return
E
.
a
;
}
E opCat
(
string
s
)
{
return
E
.
a
;
}
}
void
main
()
{
E e3
=
S
()
~
S
();
E e4
=
S
()
~
"a"
;
assert
(
e3
==
E
.
a
);
assert
(
e4
==
E
.
a
);
}