Skip to content

Commit 8042e3f

Browse files
zoecarverhlopko
authored andcommitted
[cxx-interop] Test importing Glibc with cxx-interop enabled.
1 parent 96ce908 commit 8042e3f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// RUN: %target-run-simple-swift(-Xfrontend -enable-cxx-interop)
2+
3+
// REQUIRES: executable_test
4+
// REQUIRES: OS=linux-gnu
5+
6+
import Glibc
7+
import StdlibUnittest
8+
9+
var GlibcTests = TestSuite("GlibcTests")
10+
11+
GlibcTests.test("abs") {
12+
expectEqual(42, abs(-42))
13+
}
14+
15+
runAllTests()

0 commit comments

Comments
 (0)