From ec90126016ffa2ad18b85534543fec0678b84135 Mon Sep 17 00:00:00 2001 From: Nick Bourdakos Date: Sun, 8 Jan 2023 15:54:20 -0500 Subject: [PATCH] Add test for duplicate entrypoints (#15) --- .github/workflows/spm.yml | 2 +- SwiftPMTests/build-test/test.cc | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/spm.yml b/.github/workflows/spm.yml index 846b3cb..91513c8 100644 --- a/.github/workflows/spm.yml +++ b/.github/workflows/spm.yml @@ -20,4 +20,4 @@ jobs: - name: tvOS Build Tests run: xcodebuild -scheme abseil build -sdk "appletvsimulator" -destination 'platform=tvOS Simulator,name=Apple TV' - name: iOS Device Build Tests - run: xcodebuild -scheme abseil build -sdk 'iphoneos' + run: xcodebuild -scheme abseil build -sdk 'iphoneos' -destination 'generic/platform=iOS' diff --git a/SwiftPMTests/build-test/test.cc b/SwiftPMTests/build-test/test.cc index 8586d41..e741e77 100644 --- a/SwiftPMTests/build-test/test.cc +++ b/SwiftPMTests/build-test/test.cc @@ -46,3 +46,6 @@ #include "absl/types/any.h" #include "absl/types/optional.h" #include "absl/types/variant.h" + +// Test for duplicate `_main` symbol. +int main(int argc, char** argv) {}