summaryrefslogtreecommitdiffstats
path: root/libcxxabi/test
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* Change header to generic, instead of implementation specificHoward Hinnant2012-01-221-1/+1
| | | | llvm-svn: 148646
* One more small optimization: Where possible, for loops that do a search and ↵Howard Hinnant2012-01-161-4/+4
| | | | | | then try to break out of the loop early, eliminate the attempt to break out of the loop after the last search. And with that, I'm declaring __dynamic_cast done. Though if anyone sees any problems, has suggestions for improvements, or wants to contribute some test cases, that is certainly welcome feedback. llvm-svn: 148246
* Comment smithing. Changed some casts from C-style to C++. And added ↵Howard Hinnant2012-01-163-0/+27
| | | | | | timings to all of the tests. llvm-svn: 148241
* I think this is getting close on __dynamic_cast. There's been quite a bit ↵Howard Hinnant2012-01-163-4/+3192
| | | | | | of code rearrangement, renaming, and better commenting. This exercise has exposed and fixed a few more bugs. I've also added several more tests (there's definitely a need for more tests here). llvm-svn: 148227
* Enclosed is a stress test for dynamic_cast. It stresses both libc++abi, and ↵Howard Hinnant2012-01-131-0/+81
| | | | | | clang itself. It creates a ridiculously large class hierarchy using variadic templates. You can specify both the width and depth of the class hierarchy. And you can specify whether the cast is to the actual run time type, or to an intermediate layer in the class. About 1/3 of the time I compile this, it crashes the compiler. There seems to be an uninitialized area of memory, and I'm probably blowing past an assumption on class hierarchy size within clang (and understandably so). I can get it work most of the time with a class hierarchy width of 20 and a depth of 7. I'm making timings with both -O3 and -Os, using both cast to root and cast to intermediate, on both libc++abi, and gcc's dynamic_cast. I've put the results in a comment/table at the bottom of the test. llvm-svn: 148083
* Oops, forgot to svn add the new test.Howard Hinnant2012-01-121-0/+304
| | | | llvm-svn: 148047
* Put debug print statments under a flag so that I can get a first glimpse at ↵Howard Hinnant2012-01-121-124/+123
| | | | | | performance. So far I haven't noticed any performance difference between this new __dynamic_cast and gcc's implementation. But I've barely started looking. Also adding a couple of tests which come straight out of the standard. llvm-svn: 148046
* Fixed a couple of bugs, updated many comments, and am including a ↵Howard Hinnant2012-01-121-0/+2453
| | | | | | comprehensive test for when there are only 3 types in place. I need to do something similar for 4 and maybe more types, but I'm not sure how comprehensive I can make the test at 4 and above types. llvm-svn: 148038
* Fixed several bugs, implemented support for vector types, and cleaned out ↵Howard Hinnant2011-12-151-0/+3
| | | | | | dead code. llvm-svn: 146677
* Fix size calculation for pointer to member functionHoward Hinnant2011-12-131-0/+2
| | | | llvm-svn: 146463
* Added support for <special-name> ::= TC <first type> <number> _ <second ↵Howard Hinnant2011-12-091-0/+2
| | | | | | type> # construction vtable for second-in-first, and for <special-name> ::= GR <object name> # reference temporary for object llvm-svn: 146274
* Add/update copyright noticesHoward Hinnant2011-12-063-0/+27
| | | | llvm-svn: 145949
* Updated heuristic regulating small string bufferHoward Hinnant2011-12-011-0/+1
| | | | llvm-svn: 145543
* demangler: Drop preceeding () from function types, but not from pointers and ↵Howard Hinnant2011-08-121-1/+1
| | | | | | references to function types llvm-svn: 137469
* Memory manangement routines for exception objectsMarshall Clow2011-07-201-0/+180
| | | | llvm-svn: 135587
* Exception handling stuctures, and thread-local variables for exception handlingMarshall Clow2011-07-201-0/+64
| | | | llvm-svn: 135586
* In cxa_demangle.cpp, rewrite __parse_unresolved_name to reflect updated ↵Howard Hinnant2011-06-221-2/+2
| | | | | | understanding and sync with updated clang mangling. Also fix think-o in __parse_encoding enabling the parsing of trailing .eh and .b. llvm-svn: 133632
* Clean up the vector testsMarshall Clow2011-06-132-43/+50
| | | | llvm-svn: 132921
* Implement vector new and delete functionalityMarshall Clow2011-06-103-0/+380
| | | | llvm-svn: 132832
* tabs to spacesHoward Hinnant2011-06-071-6/+6
| | | | llvm-svn: 132729
* Add more tests for cxa_guard methods. This includes our first two tests usingNick Lewycky2011-06-041-0/+75
| | | | | | | | | actual threads! There's no build file for libcxxabi, so I'll tell you that I built it with this: $ g++-4.6 -pthread -std=gnu++0x test_guard.cpp ../src/cxa_guard.o -o test_guard llvm-svn: 132644
* Tests for bad_typeid and bad_castMarshall Clow2011-06-031-0/+64
| | | | llvm-svn: 132545
* Introduce cxa_virtual.cpp and cxa_guard.cpp. Contributed by Nick Lewycky, ↵Howard Hinnant2011-05-241-0/+59
| | | | | | Howard Hinnant and John McCall llvm-svn: 132009
* initial importHoward Hinnant2011-05-051-0/+29635
llvm-svn: 130921
OpenPOWER on IntegriCloud