//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // template // T // imag(const complex& x); #include #include template void test() { std::complex z(1.5, 2.5); assert(imag(z) == 2.5); } int main() { test(); test(); test(); }