repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Require target lra in gcc.dg/pr108095.c
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.dg
/
pr96156b.d
blob
ae79d568ec6cab892ae49c6cc5c889e6aa307812
1
@safe
unittest
2
{
3
struct
CustomString
4
{
5
@safe
:
6
string _impl
;
7
@property
bool
empty
()
const
{
return
!
_impl
.
length
; }
8
}
9
10
CustomString
find
(
CustomString a
,
CustomString b
)
11
{
12
return
CustomString
.
init
;
13
}
14
15
auto
r
=
find
(
CustomString
(
"a"
),
CustomString
(
"b"
));
16
assert
(
r
.
empty
);
17
}