blob: 6667cabdb2df42bf9b4efb0ba79f5a814277a849 [file] [log] [blame]
// 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() {}