Commit b3a37c9
committed
[CIR][Test] Add crash tests for common STL features hitting NYI code
Add XFAIL tests documenting known crashes when using common C++ standard
library features. These tests serve as:
1. Documentation of known limitations
2. Regression tests to detect when features become available
3. Minimal reproducers for future implementation work
New crash tests:
- exception-ptr.cpp: std::make_exception_ptr crashes (exception handling NYI)
- async-future.cpp: std::async/std::future crashes (exception handling NYI)
- filesystem-sd-automatic.cpp: std::filesystem range-for crashes (SD_Automatic NYI)
- tls-destructor.cpp: thread_local with non-trivial destructor (TLS destructors NYI)
All tests are minimal reproducers derived from real-world usage patterns
that currently hit unimplemented code paths in ClangIR.
These issues are tracked in the cleanup/exception/destructor system design
category, requiring architectural decisions before implementation.
Test Plan:
- All 4 new tests marked XFAIL and fail as expected
- Total crash tests: 15 XFAIL tests in clang/test/CIR/crashes/
- No regressions in existing tests1 parent 0a60a85 commit b3a37c9
File tree
4 files changed
+54
-0
lines changed- clang/test/CIR/crashes
4 files changed
+54
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
0 commit comments