summaryrefslogtreecommitdiffstats
path: root/libcxxabi/test
Commit message (Collapse)AuthorAgeFilesLines
...
* Add test case for inherited exceptionsJonathan Roelofs2014-06-031-0/+165
| | | | | | Test case written by Dana Jansens. llvm-svn: 210129
* Add EH test case checking that handlers in noexcept functions can still unwindJonathan Roelofs2014-05-311-0/+34
| | | | llvm-svn: 209944
* Add EH test cases corresponding to C++ ABI # 15.3.3Jonathan Roelofs2014-05-311-0/+444
| | | | llvm-svn: 209943
* PR19091: Track whether we're demangling a function template specialization toRichard Smith2014-05-121-0/+2
| | | | | | | determine whether we get a mangling for a return type, rather than trying to figure it out based on whether the mangled name ended with a '>'. llvm-svn: 208611
* Implement ARM EHABI exception handling.Logan Chien2014-05-101-0/+8
| | | | | | | This commit implements the ARM zero-cost exception handling support for libc++abi. llvm-svn: 208466
* Check exception specification with __cplusplus.Logan Chien2014-05-101-1/+1
| | | | | | | | | To allow the compilation with gcc, we can't use the __has_feature(cxx_noexcept) to detect the default destructor exception specification, which is noexcept(true) by default in C++11. We should use __cplusplus >= 201103L instead. llvm-svn: 208465
* On single threaded systems, turn mutexes into nopsJonathan Roelofs2014-05-061-3/+13
| | | | | | http://reviews.llvm.org/D3386 llvm-svn: 208135
* Try harder to get the compiler to use float registers in differentJoerg Sonnenberger2014-05-041-8/+26
| | | | | | places to increase the chance of messing up any preserved registers. llvm-svn: 207938
* Don't use bash features.Joerg Sonnenberger2014-05-031-16/+16
| | | | llvm-svn: 207907
* Add unwind test case that checks restoring of float registers (such as on ↵Nick Kledzik2014-04-291-0/+239
| | | | | | AArch64) llvm-svn: 207481
* Demangle Dc to decltype(auto) as per the Itanium C++ ABI spec.Anders Carlsson2014-02-171-0/+1
| | | | llvm-svn: 201533
* Fix PR17221 - can't catch virtual base classes when throwing derived NULL ↵Marshall Clow2014-02-061-4/+39
| | | | | | pointers. Specifically, libc++abi would crash when you tried it. llvm-svn: 200904
* Fix PR17222 - catching derived classes from thrown null pointer. Adds tests, tooMarshall Clow2014-02-051-1/+76
| | | | llvm-svn: 200864
* Implement demangling for user-defined operators.Howard Hinnant2014-01-061-0/+1
| | | | llvm-svn: 198643
* Fix demangling crasher. The crasher involved nested <encoding> involving ↵Howard Hinnant2013-12-111-1/+4
| | | | | | 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
* 80-column wrap a comment in a testNico Weber2013-12-051-1/+1
| | | | llvm-svn: 196540
* Fixed a couple of test errors; changed 'const A const *' to 'const A* ↵Marshall Clow2013-12-041-2/+2
| | | | | | const'. Thanks to Nico for the catch llvm-svn: 196355
* tip-of-trunk clang has corrected some access checks for special members in a ↵Howard Hinnant2013-07-301-4/+4
| | | | | | 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. llvm-svn: 187429
* I'd no sooner made the last commit when Matthew Dempsky sent me another test ↵Howard Hinnant2013-06-231-1/+1
| | | | | | case that led me to yet another closely related test case that the current design could not handle. I've now changed the way forward references are handled completely. It wasn't that much code to change. The demangler, when confronted with a forward reference to a template parameter, now parses things twice. During the second parse, all forward references are remembered from the first parse. Test suite updated with new case. llvm-svn: 184672
* After a private conversation with Arthur O'Dwyer, and a good night's sleep, ↵Howard Hinnant2013-06-231-1/+1
| | | | | | I believe this fix is a better fix than what I committed in r184656 yesterday. I've basically moved the checking for '`' from the start of the demangling process to the end of it. In the process I discovered that one of the test cases no longer demangled to the expected string. After further investigation I believe this case to not be a valid mangled string, and so I moved the test case to the 'invalid cases'. The reason I believe it is invalid is that it should use T_ instead of T0_ to index the template parameter. llvm-svn: 184668
* Filter out '`' in mangled strings and reject them as invalid if found.Howard Hinnant2013-06-231-0/+1
| | | | llvm-svn: 184656
* I created a random mangled name generator and have thrown about 200 million ↵Howard Hinnant2013-06-211-0/+2
| | | | | | random strings at the demangler. I succeeded in crashing it twice more and those crashers have been fixed and the test suite updated with the crash cases. llvm-svn: 184562
* Another demangler crasher. Updated test suite to prevent regression.Howard Hinnant2013-06-201-0/+1
| | | | llvm-svn: 184477
* Protect against invalid mangled names. Add test suite for invalid mangled ↵Howard Hinnant2013-06-201-17/+14
| | | | | | names. llvm-svn: 184394
* Demangle objc mangling implemented in r184250Howard Hinnant2013-06-191-0/+2
| | | | llvm-svn: 184301
* Demangler update: This now demangles many more (all?) C++11 symbols. ↵Howard Hinnant2013-06-171-5/+17
| | | | | | Demangler tests updated. llvm-svn: 184097
* Add capability to demangle invocation functions for ObjC blocks.Howard Hinnant2013-04-101-0/+1
| | | | llvm-svn: 179208
* __list::ends_with_template was giving the wrong answer for empty lists. And ↵Howard Hinnant2012-11-301-1/+32
| | | | | | __parse_unnamed_type_name wasn't properly handling the list of paramters and was not safe against incorrectly mangled lambdas (running past last). llvm-svn: 169022
* Move TargetData to DataLayout.Micah Villmow2012-10-081-156/+156
| | | | llvm-svn: 165397
* Fixes apple: #12020687. This was a problem in the demangler with templateHoward Hinnant2012-08-031-0/+1
| | | | | | | | | substitution forward references. That is, sometimes a mangled name refers to a substitution that hasn't yet been defined. The demangler was derferencing a null pointer in this case because it wasn't properly guarded against a forward reference. Test case added to catch this problem. llvm-svn: 161267
* Erik Olofsson: This patch adds support for lambda demangling. I fixed this ↵Howard Hinnant2012-08-011-0/+2
| | | | | | | | because it crashed lldb when it tried to demangle the added test. Not sure how it should identify the lambda so that might need changing from the current 'lambdax':: Howard: Please patch CREDITS.TXT. llvm-svn: 161125
* Add missing #include <stdlib.h> into test which uses ::exit.Richard Smith2012-07-111-1/+2
| | | | llvm-svn: 160039
* Fix bug in cxa_demangle involving template substitution.Howard Hinnant2012-05-021-0/+1
| | | | llvm-svn: 155994
* corrected namespace in testHoward Hinnant2012-02-021-1/+1
| | | | llvm-svn: 149635
* added const nullptr testsMarshall Clow2012-02-011-0/+133
| | | | llvm-svn: 149552
* removed duplicated tests - Howard was quicker than me.Marshall Clow2012-02-011-64/+0
| | | | llvm-svn: 149545
* Added tests for catching const/non-const nullptrMarshall Clow2012-02-011-0/+64
| | | | llvm-svn: 149542
* Add test for pointer qualification conversion.Howard Hinnant2012-02-011-0/+86
| | | | llvm-svn: 149541
* Add some tests to test catching nullptr with pointers and member pointers. ↵Howard Hinnant2012-02-012-0/+135
| | | | | | Tests are only activated if #if __has_feature(cxx_nullptr). llvm-svn: 149536
* Quash a TODO related to catching pointer-to-member. These tests fail on my ↵Howard Hinnant2012-02-012-0/+114
| | | | | | 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. llvm-svn: 149534
* Quash TODO regarding catch by function type. Add tests to back it up.Howard Hinnant2012-02-012-0/+62
| | | | llvm-svn: 149530
* Quash TODO regarding catch by array type. Add tests to back it up.Howard Hinnant2012-02-012-0/+60
| | | | llvm-svn: 149527
* Here's a test for catching pointers.Howard Hinnant2012-02-011-0/+181
| | | | llvm-svn: 149459
* More test cases concentrating on catching class types.Howard Hinnant2012-01-315-2/+546
| | | | llvm-svn: 149453
* Some unwinding test casesHoward Hinnant2012-01-316-2/+514
| | | | llvm-svn: 149436
* Drop the stress a notch on dynamic_cast_stress.cpp. Otherwise it ↵Howard Hinnant2012-01-313-2/+137
| | | | | | 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 :-) llvm-svn: 149413
* Correct test bug.Howard Hinnant2012-01-311-2/+2
| | | | llvm-svn: 149412
* Minor header fixups for test.Howard Hinnant2012-01-281-1/+2
| | | | llvm-svn: 149156
* Silence a warning.Howard Hinnant2012-01-281-1/+1
| | | | llvm-svn: 149155
* Marshall Clow reminded me that fallback_malloc.cpp was broken out for ↵Howard Hinnant2012-01-241-1/+1
| | | | | | testing purposes. We've agreed to simply rename fallback_malloc.cpp to fallback_malloc.ipp. Thanks Marshall. llvm-svn: 148863
OpenPOWER on IntegriCloud