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