CMake/Tests/SwiftMixLib/main.swift
Evan Wilde f6ff19cc9d Tests: Add mixed Swift+CXX source test case
This test ensures we can configure and build mixed source binaries. The
test configures, but fails to verify due to multiple targets emitting
the `lib.c.o` and `lib.cpp.o` outputs. Both the clang build step and the
swift link step report that they emit the `lib.c.o` and `lib.cpp.o`
outputs. The `.o`'s are emitted by clang, not by swift.
2022-09-19 11:37:48 -07:00

4 lines
45 B
Swift

import SwiftMixedLib
print(add(a: 1, b: 2))