libstdc++-v3/testsuite/26_numerics/headers/ccomplex/complex.h.cc
raw| 1 | // { dg-options "-D_GLIBCXX_USE_DEPRECATED=0 -Wdeprecated" } |
| 2 | // { dg-do compile } |
| 3 | // { dg-bogus "deprecated" "C++17 deprecated <ccomplex> but not <complex.h>" } |
| 4 | |
| 5 | #include <complex.h> |
| 6 | |
| 7 | #if __cplusplus < 201103L |
| 8 | # undef complex |
| 9 | #endif |
| 10 | std::complex<double> d; // { dg-error "does not name a template" "" { target c++98_only } 0 } |