Skip to content

Commit d596d53

Browse files
committed
Add a main function to tests to ensure the package doesn't include any other entrypoints
1 parent 06e7506 commit d596d53

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ let package = Package(
2222
// main functions
2323
"absl/hash/internal/print_hash_of.cc",
2424
"absl/random/internal/gaussian_distribution_gentables.cc",
25-
"absl/random/internal/randen_benchmarks.cc",
25+
// "absl/random/internal/randen_benchmarks.cc",
2626
],
2727
sources: [
2828
"absl/"

SwiftPMTests/build-test/test.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,6 @@
4646
#include "absl/types/any.h"
4747
#include "absl/types/optional.h"
4848
#include "absl/types/variant.h"
49+
50+
// Test for duplicate `_main` symbol.
51+
int main(int argc, char** argv) {}

0 commit comments

Comments
 (0)