[compiler-rt] r335891 - [Darwin] Add an integration test for PGO + symbol exports

Vedant Kumar via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 28 10:53:43 PDT 2018


Author: vedantk
Date: Thu Jun 28 10:53:43 2018
New Revision: 335891

URL: http://llvm.org/viewvc/llvm-project?rev=335891&view=rev
Log:
[Darwin] Add an integration test for PGO + symbol exports

rdar://41470205

Added:
    compiler-rt/trunk/test/profile/instrprof-darwin-exports.c

Added: compiler-rt/trunk/test/profile/instrprof-darwin-exports.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/profile/instrprof-darwin-exports.c?rev=335891&view=auto
==============================================================================
--- compiler-rt/trunk/test/profile/instrprof-darwin-exports.c (added)
+++ compiler-rt/trunk/test/profile/instrprof-darwin-exports.c Thu Jun 28 10:53:43 2018
@@ -0,0 +1,11 @@
+// REQUIRES: osx-ld64-live_support
+
+// Compiling with PGO/code coverage on Darwin should raise no warnings or errors
+// when using an exports list.
+
+// RUN: echo "_main" > %t.exports
+// RUN: %clang_pgogen -Werror -Wl,-exported_symbols_list,%t.exports -o %t %s 2>&1 | tee %t.log
+// RUN: %clang_profgen -Werror -fcoverage-mapping -Wl,-exported_symbols_list,%t.exports -o %t %s 2>&1 | tee -a %t.log
+// RUN: cat %t.log | count 0
+
+int main() {}




More information about the llvm-commits mailing list