File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
test/Interop/Cxx/exceptions Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 9
9
// RUN: %target-codesign %t/trap-exceptions-no-debug
10
10
// RUN: %target-run %t/trap-exceptions-no-debug
11
11
12
- // RUN: %target-build-swift %s -I %t/Inputs -o %t/trap-exceptions-opt -Xfrontend -enable-experimental-cxx-interop -Xfrontend -validate-tbd-against-ir=none -O -DOPTIMIZE
12
+ // RUN: %target-build-swift %s -I %t/Inputs -o %t/trap-exceptions-opt -Xfrontend -enable-experimental-cxx-interop -Xfrontend -validate-tbd-against-ir=none -O
13
13
// RUN: %target-codesign %t/trap-exceptions-opt
14
14
// RUN: %target-run %t/trap-exceptions-opt
15
15
@@ -93,15 +93,15 @@ TrapOnExecutionTestSuite.test("TestClassWithThrowingDestructor") {
93
93
let _ = ClassWithThrowingDestructor ( )
94
94
}
95
95
96
- #if OPTIMIZE
97
- #else
98
96
TrapOnExecutionTestSuite . test ( " TestClassWithThrowingCopyConstructor " ) {
99
97
expectCrashLater ( )
100
98
let p1 = ClassWithThrowingCopyConstructor ( )
101
- let p2 = p1
99
+ var p2 = p1
102
100
expectEqual ( p2. m, 0 )
101
+ p2. m = 1
102
+ expectEqual ( p2. m, 1 )
103
+ expectEqual ( p1. m, 0 )
103
104
}
104
- #endif
105
105
106
106
TrapOnExecutionTestSuite . test ( " ClassWithThrowingConstructor " ) {
107
107
expectCrashLater ( )
You can’t perform that action at this time.
0 commit comments