[compiler-rt][Darwin][x86] Fix instrprof-darwin-exports test (#131425) · llvm/llvm-project@2198410 (original) (raw)

`@@ -7,13 +7,13 @@

`

7

7

`// just "_main" produces no warnings or errors.

`

8

8

`//

`

9

9

`// RUN: echo "_main" > %t.exports

`

10

``

`-

// RUN: %clang_pgogen -Werror -Wl,-exported_symbols_list,%t.exports -o %t %s 2>&1 | tee %t.log

`

11

``

`-

// RUN: %clang_profgen -Werror -fcoverage-mapping -Wl,-exported_symbols_list,%t.exports -o %t %s 2>&1 | tee -a %t.log

`

``

10

`+

// RUN: %clang_pgogen -Werror -Wl,-exported_symbols_list,%t.exports -Wl,-w -o %t %s 2>&1 | tee %t.log

`

``

11

`+

// RUN: %clang_profgen -Werror -fcoverage-mapping -Wl,-exported_symbols_list,%t.exports -Wl,-w -o %t %s 2>&1 | tee -a %t.log

`

12

12

`// RUN: cat %t.log | count 0

`

13

13

``

14

14

`// 2) Ditto (1), but for GCOV.

`

15

15

`//

`

16

``

`-

// RUN: %clang -Werror -Wl,-exported_symbols_list,%t.exports --coverage -o %t.gcov %s | tee -a %t.gcov.log

`

``

16

`+

// RUN: %clang -Werror -Wl,-exported_symbols_list,%t.exports -Wl,-w --coverage -o %t.gcov %s | tee -a %t.gcov.log

`

17

17

`// RUN: cat %t.gcov.log | count 0

`

18

18

``

19

19

`// 3) The default set of weak external symbols should match the set of symbols

`