tree-optimization/116481 - avoid building function_type[]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / complex_literals1a.C
bloba5d1e010f8dffadf352a24efc93a2c13169a4cd6
1 // PR c++/79228
2 // { dg-do compile { target c++14 } }
3 // { dg-options "" }
4 // { dg-skip-if "requires hosted libstdc++ for complex" { ! hostedlib } }
6 #include <complex>
8 int main()
10   auto a = std::abs(0.0i);      // { dg-error "literal operator" }
11   // { dg-message "complex_literals" "" { target *-*-* } .-1 }