Skip to content

Commit e690d22

Browse files
committed
[test] trap-function: Actually check that we emit the right attribute in -O
1 parent 92f782c commit e690d22

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

test/IRGen/trap-function-clang.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ func checkClangImporter() {
1919
}
2020

2121
// TRAPFN: attributes [[ATTR0]] = { {{.*}}"trap-func-name"="oopsie" }
22+
// TRAPFN_OPT: attributes [[ATTR0]] = { {{.*}}"trap-func-name"="oopsie" }
2223
// NOTRAPFN-NOT: attributes {{.*}} = { {{.*}}"trap-func-name"="oopsie" }

test/IRGen/trap-function.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,5 @@ func terminator() {
6363
}
6464

6565
// TRAPFN: attributes [[ATTR0]] = { {{.*}}"trap-func-name"="oopsie" }
66+
// TRAPFN_OPT: attributes [[ATTR0]] = { {{.*}}"trap-func-name"="oopsie" }
6667
// NOTRAPFN-NOT: attributes {{.*}} = { {{.*}}"trap-func-name"="oopsie" }

0 commit comments

Comments
 (0)