Debian Codegraph @

gcc/testsuite/g++.dg/dfp/pr122834-1.C

raw
1 // PR c++/122834
2 // { dg-do compile { target { c++11 && float128 } } }
3 // { dg-options "" }
4 // { dg-add-options float128 }
5
6 typedef decltype (0.0DL) A;
7 typedef _Float128 B;
8 void bar (A); // { dg-message "initializing argument 1 of" }
9
10 void
11 foo (B x)
12 {
13 bar (x); // { dg-warning "with unordered conversion rank" }
14 }
15
16 auto a = 0.0DL + 1.0F128; // { dg-error "invalid operands to binary \\\+" }
17 auto b = 1.0F128 + 0.0DL; // { dg-error "invalid operands to binary \\\+" }