We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c076b58 commit f8d4526Copy full SHA for f8d4526
test/embedded/dependencies.swift
@@ -2,6 +2,10 @@
2
// RUN: %target-swift-frontend -enable-experimental-feature Embedded %s -c -o %t/a.o
3
4
// RUN: grep DEP\: %s | sed 's#// DEP\: ##' | sort > %t/allowed-dependencies.txt
5
+
6
+// Linux/ELF doesn't use the "_" prefix in symbol mangling.
7
+// RUN: if [ %target-os == "linux-gnu" ]; then sed -E -i -e 's/^_(.*)$/\1/' %t/allowed-dependencies.txt; fi
8
9
// RUN: %llvm-nm --undefined-only --format=just-symbols %t/a.o | sort | tee %t/actual-dependencies.txt
10
11
// Fail if there is any entry in actual-dependencies.txt that's not in allowed-dependencies.txt
0 commit comments