blob: 36c483e900c26c2b5b3cf89be59760a7a585efd6 [file] [log] [blame]
// { dg-do compile }
// Bug 120235 std::fabs(const std::complex<T>&) should not be defined
#include <complex>
void test_pr120235(std::complex<double> c)
{
(void) std::fabs(c);
// { dg-error "no matching function" "" { target c++98_only } 8 }
// { dg-warning "deprecated: use 'std::abs'" "" { target c++11 } 8 }
}
// { dg-prune-output "no type named '__type'" }