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
c++: fix explicit/copy problem [PR109247]
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.dg
/
torture
/
gdc141.d
blob
315811cda18a62a1b9e0fcc05596b08700f47e34
1
// https://bugzilla.gdcproject.org/show_bug.cgi?id=141
2
// { dg-do run }
3
// { dg-skip-if "needs gcc/config.d" { ! d_runtime } }
4
5
bool
test141
(
int
a
)
6
{
7
return
a
> (
a
+
1
);
8
}
9
10
void
main
()
11
{
12
assert
(
test141
(
int
.
min
) ==
false
);
13
assert
(
test141
(
int
.
max
) ==
true
);
14
}