]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.dg/torture/gdc200.d
d: Move all runnable tests in gdc.dg to gdc.dg/torture
[thirdparty/gcc.git] / gcc / testsuite / gdc.dg / torture / gdc200.d
1 // https://bugzilla.gdcproject.org/show_bug.cgi?id=200
2 // { dg-do run }
3 // { dg-skip-if "needs gcc/config.d" { ! d_runtime } }
4
5 void test200a(double x, double y)
6 {
7 const double y2 = x + 1.0;
8 assert(y == y2);
9 }
10
11 void main()
12 {
13 const double x = .012;
14 const double y = x + 1.0;
15 test200a(x, y);
16 }