Skip to content

Commit

Permalink
[test] Fix no-undef-type-md.ll.
Browse files Browse the repository at this point in the history
There are two test issues:
- The test assumes the current directory is writeable, but it may not be. Use `%t.o`-like paths instead of implicit `a.out`.
- The `RUN llvm-nm` line is missing a colon, so the test was not being exercised.
  • Loading branch information
rupprecht committed Jan 24, 2022
1 parent 9d32847 commit d4be972
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions llvm/test/LTO/Resolution/X86/no-undef-type-md.ll
@@ -1,19 +1,19 @@
; RUN: opt <%s -o %t0.o -thinlto-bc -thinlto-split-lto-unit
; RUN: llvm-as -o %t1.o %S/Inputs/no-undef-type-md.ll
; RUN: llvm-lto2 run -o a.out \
; RUN: llvm-lto2 run -o %t-obj.o \
; RUN: %t0.o \
; RUN: -r=%t0.o,a, \
; RUN: -r=%t0.o,b,pl \
; RUN: %t1.o \
; RUN: -r=%t1.o,a,pl \
; RUN: | FileCheck --allow-empty --check-prefix=ERROR %s
; RUN llvm-nm a.out.0 a.out.1 -S | FileCheck %s
; RUN: llvm-nm %t-obj.o.0 %t-obj.o.1 -S | FileCheck %s

; ERROR-NOT: expected a Function or null
; ERROR-NOT: i32 (%0*, i32*)* undef

; CHECK: a.out.0:
; CHECK: a.out.1:
; CHECK: -obj.o.0:
; CHECK: -obj.o.1:

; ModuleID = 'test.cpp.o'
source_filename = "test.cpp"
Expand Down

0 comments on commit d4be972

Please sign in to comment.