Skip to content

Commit 8a9f179

Browse files
committed
Interop: remove -O in test
Now that the integral constants are being materialized when importing `constexpr` from C++, we can avoid the need for the optimizer to inline the value. Remove this workaround.
1 parent 99ac668 commit 8a9f179

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/Interop/Cxx/static/constexpr-static-member-var.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-clang -std=c++11 -c %S/Inputs/static-member-var.cpp -I %S/Inputs -o %t/static-member-var.o
3-
// NOTE: we must use `-O` here to ensure that the constexpr value is inlined and no undefined reference remains.
4-
// RUN: %target-build-swift -O %s -I %S/Inputs -o %t/statics %t/static-member-var.o -Xfrontend -enable-cxx-interop
3+
// RUN: %target-build-swift %s -I %S/Inputs -o %t/statics %t/static-member-var.o -Xfrontend -enable-cxx-interop
54
// RUN: %target-codesign %t/statics
65
// RUN: %target-run %t/statics
76
//

0 commit comments

Comments
 (0)