Debian Codegraph @

gcc/testsuite/g++.dg/cpp1y/complex_literals1a.C

raw
1 // PR c++/79228
2 // { dg-do compile { target c++14 } }
3 // { dg-options "" }
4 // { dg-skip-if "requires hosted libstdc++ for complex" { ! hostedlib } }
5
6 #include <complex>
7
8 int main()
9 {
10 auto a = std::abs(0.0i); // { dg-error "literal operator" }
11 // { dg-message "complex_literals" "" { target *-*-* } .-1 }
12 }