Skip to content

Commit 581bf3c

Browse files
committed
Add tests for uwtable annotations on modules
1 parent f46fade commit 581bf3c

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

tests/codegen-llvm/force-no-unwind-tables.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@
99
fn foo() {
1010
panic!();
1111
}
12+
13+
// CHECK-NOT: !"uwtable"

tests/codegen-llvm/force-unwind-tables.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@
44

55
// CHECK: attributes #{{.*}} uwtable
66
pub fn foo() {}
7+
8+
// CHECK: !{{[0-9]+}} = !{i32 7, !"uwtable", i32 2}

0 commit comments

Comments
 (0)