1 /* Test demangling a C++ function. */
11 /* Return 0 if the demangling test succeeds. */
12 static int test_function1 ()
14 std::cout << __PRETTY_FUNCTION__ << "\n";
15 return std::strcmp (__PRETTY_FUNCTION__, "static int demangle_test::test_function1()");
18 /* Return 0 if the demangling test succeeds. */
19 static int test_function2 (int ignored)
21 std::cout << __PRETTY_FUNCTION__ << "\n";
22 return std::strcmp (__PRETTY_FUNCTION__, "static int demangle_test::test_function2(int)");
28 if (demangle_test::test_function1 () != 0)
31 if (demangle_test::test_function2 (0) != 0)