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