Skip to content

Commit 232db8c

Browse files
authored
[CIR] Introduce a new dir in tests for known crashes to fix
We figure it would be nice to have a common place with all our known crashes that is tracked by git and is actively verified whether or not we can now support the crashes by lit. It can act as our source of truth for known failures and also being potential good first tasks for new developers. Add a simple test case of a known crash that involves copying a struct in a catch. Reviewers: smeenai, bcardosolopes Reviewed By: bcardosolopes Pull Request: #1243
1 parent 363440c commit 232db8c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// RUN: %clang_cc1 -triple aarch64-none-linux-android21 -fclangir -emit-cir %s -o %t.cir -fcxx-exceptions -fexceptions | FileCheck %s
2+
// XFAIL: *
3+
4+
// CHECK: cir.func
5+
6+
struct E {};
7+
E e;
8+
9+
void throws() { throw e; }
10+
11+
void bar() {
12+
try {
13+
throws();
14+
} catch (E e) {
15+
}
16+
}

0 commit comments

Comments
 (0)