Debian Codegraph @

gcc/testsuite/g++.dg/init/float1.C

raw
1 // PR c++/21089
2 // { dg-do run }
3
4 extern "C" void abort();
5
6 static const double a = 1.0;
7 struct S {
8 S();
9 };
10 static S s;
11 static const double b = a + 1.0;
12
13 S::S() {
14 if (b < 1.9 || b > 2.1)
15 abort ();
16 }
17
18 int main () {
19 }