mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This enables control over the C++ flags used during testing for the C++ interop from a single location rather than having to alter all the tests.
19 lines
618 B
Swift
19 lines
618 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-clangxx -c %S/Inputs/static-member-var.cpp -I %S/Inputs -o %t/static-member-var.o
|
|
// RUN: %target-build-swift %s -I %S/Inputs -o %t/statics %t/static-member-var.o -Xfrontend -enable-cxx-interop
|
|
// RUN: %target-codesign %t/statics
|
|
// RUN: %target-run %t/statics
|
|
//
|
|
// REQUIRES: executable_test
|
|
|
|
import StaticMemberVar
|
|
import StdlibUnittest
|
|
|
|
var ConstexprStaticMemberVarTestSuite = TestSuite("ConstexprStaticMemberVarTestSuite")
|
|
|
|
ConstexprStaticMemberVarTestSuite.test("constexpr-static-member") {
|
|
expectEqual(139, WithConstexprStaticMember.definedInline)
|
|
}
|
|
|
|
runAllTests()
|