Debian Codegraph @

libstdc++-v3/testsuite/26_numerics/headers/ctgmath/complex.h.cc

raw
1 // { dg-options "-D_GLIBCXX_USE_DEPRECATED=0 -Wdeprecated" }
2 // { dg-do compile }
3 // { dg-bogus "deprecated" "C++17 deprecated <ctgmath> but not <tgmath.h>" }
4
5 #include <tgmath.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 }