hanchenye-llvm-project/libcxxabi/test
Howard Hinnant 14fe17f302 Fix demangling crasher. The crasher involved nested <encoding> involving parameter packs, which exposed a logic bug causing an empty vector<string> to be accessed with back(). In addition to fixing the bug, I've inserted numerous preemptive checks for similar bugs in the hopes that if another bug is uncovered, the bug results in an invalid mangled string instead of a demangler crash. Test suite updated with string that was causing the crash.
llvm-svn: 197063
2013-12-11 19:44:25 +00:00
..
catch_array_01.cpp Quash TODO regarding catch by array type. Add tests to back it up. 2012-02-01 19:21:28 +00:00
catch_array_02.cpp Quash TODO regarding catch by array type. Add tests to back it up. 2012-02-01 19:21:28 +00:00
catch_class_01.cpp More test cases concentrating on catching class types. 2012-01-31 23:52:20 +00:00
catch_class_02.cpp More test cases concentrating on catching class types. 2012-01-31 23:52:20 +00:00
catch_class_03.cpp More test cases concentrating on catching class types. 2012-01-31 23:52:20 +00:00
catch_class_04.cpp More test cases concentrating on catching class types. 2012-01-31 23:52:20 +00:00
catch_const_pointer_nullptr.cpp 80-column wrap a comment in a test 2013-12-05 21:54:49 +00:00
catch_function_01.cpp Quash TODO regarding catch by function type. Add tests to back it up. 2012-02-01 19:42:45 +00:00
catch_function_02.cpp Quash TODO regarding catch by function type. Add tests to back it up. 2012-02-01 19:42:45 +00:00
catch_member_data_pointer_01.cpp Quash a TODO related to catching pointer-to-member. These tests fail on my copy of gcc-4.2. But I believe the tests to be correct (and they pass for libc++abi). I've enquired on the C++ standards mailing list for a clarification in case I'm wrong. So far I've gotten one response that agrees with me. 2012-02-01 20:53:21 +00:00
catch_member_function_pointer_01.cpp Quash a TODO related to catching pointer-to-member. These tests fail on my copy of gcc-4.2. But I believe the tests to be correct (and they pass for libc++abi). I've enquired on the C++ standards mailing list for a clarification in case I'm wrong. So far I've gotten one response that agrees with me. 2012-02-01 20:53:21 +00:00
catch_member_pointer_nullptr.cpp Add some tests to test catching nullptr with pointers and member pointers. Tests are only activated if #if __has_feature(cxx_nullptr). 2012-02-01 21:01:52 +00:00
catch_pointer_nullptr.cpp Add some tests to test catching nullptr with pointers and member pointers. Tests are only activated if #if __has_feature(cxx_nullptr). 2012-02-01 21:01:52 +00:00
catch_ptr.cpp Here's a test for catching pointers. 2012-02-01 00:22:38 +00:00
catch_ptr_02.cpp Add test for pointer qualification conversion. 2012-02-01 21:25:40 +00:00
dynamic_cast3.cpp tip-of-trunk clang has corrected some access checks for special members in a virtual inheritance hierarchy. Change a few private inheritances to protected. This change will not impact what the test was testing. This fixes http://llvm.org/bugs/show_bug.cgi?id=16753. 2013-07-30 19:00:45 +00:00
dynamic_cast5.cpp Comment smithing. Changed some casts from C-style to C++. And added timings to all of the tests. 2012-01-16 17:06:51 +00:00
dynamic_cast14.cpp Comment smithing. Changed some casts from C-style to C++. And added timings to all of the tests. 2012-01-16 17:06:51 +00:00
dynamic_cast_stress.cpp More test cases concentrating on catching class types. 2012-01-31 23:52:20 +00:00
test_aux_runtime.cpp Silence a warning. 2012-01-28 00:29:27 +00:00
test_demangle.cpp Fix demangling crasher. The crasher involved nested <encoding> involving parameter packs, which exposed a logic bug causing an empty vector<string> to be accessed with back(). In addition to fixing the bug, I've inserted numerous preemptive checks for similar bugs in the hopes that if another bug is uncovered, the bug results in an invalid mangled string instead of a demangler crash. Test suite updated with string that was causing the crash. 2013-12-11 19:44:25 +00:00
test_exception_storage.cpp Correct test bug. 2012-01-31 20:01:06 +00:00
test_fallback_malloc.cpp Marshall Clow reminded me that fallback_malloc.cpp was broken out for testing purposes. We've agreed to simply rename fallback_malloc.cpp to fallback_malloc.ipp. Thanks Marshall. 2012-01-24 21:41:27 +00:00
test_guard.cpp tabs to spaces 2011-06-07 19:56:49 +00:00
test_vector1.cpp Drop the stress a notch on dynamic_cast_stress.cpp. Otherwise it occasionally causes clang to crash. Put a noexcept(false) on a throwing destructor in test_vector1.cpp. The test now passes for both C++03 and C++11 modes. Add testit script. All tests are now PASSING :-) 2012-01-31 20:10:33 +00:00
test_vector2.cpp Clean up the vector tests 2011-06-13 17:57:10 +00:00
test_vector3.cpp Add missing #include <stdlib.h> into test which uses ::exit. 2012-07-11 09:37:56 +00:00
testit Some unwinding test cases 2012-01-31 21:58:58 +00:00
unwind_01.cpp Some unwinding test cases 2012-01-31 21:58:58 +00:00
unwind_02.cpp Some unwinding test cases 2012-01-31 21:58:58 +00:00
unwind_03.cpp Some unwinding test cases 2012-01-31 21:58:58 +00:00
unwind_04.cpp Some unwinding test cases 2012-01-31 21:58:58 +00:00
unwind_05.cpp Some unwinding test cases 2012-01-31 21:58:58 +00:00