Skip to content

Commit b17ce75

Browse files
committed
tests: Avoid compiling the unknown-external.xl file twice
This results in "duplicate module" error in llvm-10 Signed-off-by: Christophe de Dinechin <christophe@dinechin.org>
1 parent 973204b commit b17ce75

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

tests/O3/unknown-external-O3.ref

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,3 @@ invalid_function X:text is C some_unknown_symbol
22
invalid_function "Hello"
33
<Unknown position>: Generating machine code for 'xl.eval' failed: Unresolved symbols: some_unknown_symbol
44
O3/unknown-external.xl:4:18: Error compiling [invalid_function X:text is C s…mbol|invalid_function "Hello"]
5-
<Unknown position>: Generating machine code for 'xl.eval' failed: Unresolved symbols: some_unknown_symbol
6-
O3/unknown-external.xl:4:18: Error compiling [invalid_function X:text is C s…mbol|invalid_function "Hello"]

tests/O3/unknown-external.xl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// OPT=-O3 -nobuiltins %f
1+
// OPT=-O3 -nobuiltins
22
// FILTER=sed -e 's/_some_unknown_symbol/some_unknown_symbol/g' -e 's/JIT session error: Unresolved symbol:/Unresolved symbols:/g' -e 's/Symbols not found.*some_unknown_symbol.*/Unresolved symbols: some_unknown_symbol/g' | grep -v "Failed to materialize symbols"
33
// EXIT=1
44
invalid_function X:text is C some_unknown_symbol

0 commit comments

Comments
 (0)