repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
tree-optimization/116481 - avoid building function_type[]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
complex_literals1a.C
blob
a5d1e010f8dffadf352a24efc93a2c13169a4cd6
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
}