Debian Codegraph @

gcc/testsuite/g++.dg/modules/literals-1_b.C

raw
1 // { dg-additional-options {-fmodules-ts -Wno-psabi} }
2
3 import real2reel;
4
5 int main ()
6 {
7 if (assassing () != 2.0f)
8 return 1;
9
10 if (market (/*square=*/2.0f, /*heroes=*/7.0) != 56.0)
11 return 2;
12
13 auto c_i = cinderella_search ();
14 if (__real__ (c_i) != 1 || __imag__ (c_i) != 2)
15 return 3;
16
17 auto c_f = emerald_lies ();
18 if (__real__ (c_f) != 3.0f || __imag__ (c_f) != 4.0f)
19 return 4;
20
21 auto c_d = forgotten_sons ();
22 if (__real__ (c_d) != 5.0 || __imag__ (c_d) != 6.0)
23 return 5;
24
25
26 if (garden_party (7) != ' ')
27 return 6;
28
29 auto v = incubus ();
30 if (v[0] != 1 || v[1] != 7 || v[2] != 3 || v[3] != 9)
31 return 7;
32
33 v = charting_the_single ();
34 if (v[0] != 1 || v[1] != 2 || v[2] != 3 || v[3] != 4)
35 return 8;
36
37 return 0;
38 }
39