// REQUIRED_ARGS: -o- // PERMUTE_ARGS: /* TEST_OUTPUT: --- 123 123u 123L 123LU 123.5 123.5F 123.5L 123.5i 123.5Fi 123.5Li (123.5+5.5i) (123.5F+5.5Fi) (123.5L+5.5Li) --- */ pragma(msg, 123); pragma(msg, 123u); pragma(msg, 123L); pragma(msg, 123uL); pragma(msg, 123.5); pragma(msg, 123.5f); pragma(msg, 123.5L); pragma(msg, 123.5i); pragma(msg, 123.5fi); pragma(msg, 123.5Li); pragma(msg, 123.5 +5.5i); pragma(msg, 123.5f+5.5fi); pragma(msg, 123.5L+5.5Li); static assert((123 ).stringof == "123"); static assert((123u ).stringof == "123u"); static assert((123L ).stringof == "123L"); static assert((123uL).stringof == "123LU"); static assert((123.5 ).stringof == "1.235e+2"); static assert((123.5f ).stringof == "1.235e+2F"); static assert((123.5L ).stringof == "1.235e+2L"); static assert((123.5i ).stringof == "1.235e+2i"); static assert((123.5fi).stringof == "1.235e+2Fi"); static assert((123.5Li).stringof == "1.235e+2Li"); static assert((123.5 +5.5i ).stringof == "1.235e+2 + 5.5e+0i"); static assert((123.5f+5.5fi).stringof == "1.235e+2F + 5.5e+0Fi"); static assert((123.5L+5.5Li).stringof == "1.235e+2L + 5.5e+0Li");