Skip to content

Commit 693a987

Browse files
authored
[flang] Make lto-bc.f90 unsupported on Darwin (#171693)
It fails with the following error: ``` RUN: at line 23 /Users/leandro.lupori/home/git/flang/build/bin/flang -flto /Users/leandro.lupori/home/git/flang/llvm-project/flang/test/Driver/lto-bc.f90 -c -o - | llvm-dis -o - | /Users/leandro.lupori/home/git/flang/build/bin/FileCheck /Users/leandro.lupori/home/git/flang/llvm-project/flang/test/Driver/lto-bc.f90 --check-prefix=FULL .---command stderr------------ | /Users/leandro.lupori/home/git/flang/llvm-project/flang/test/Driver/lto-bc.f90:27:9: error: FULL: expected string not found in input | ! FULL: !{{.*}} = !{i32 1, !"ThinLTO", i32 0} | ^ | ... | Input was: | <<<<<< | ... | 24: !llvm.ident = !{!0} | check:27'0 ~~~~~~~~~~~~~~~~~~~~ | 25: !llvm.module.flags = !{!1, !2} | check:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 26: | check:27'0 ~ | 27: !0 = !{!"flang version 22.0.0 (git@github.com:llvm/llvm-project.git dde1990)"} | check:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 28: !1 = !{i32 2, !"Debug Info Version", i32 3} | check:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 29: !2 = !{i32 8, !"PIC Level", i32 2} | check:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | check:27'1 ? possible intended match | >>>>>> `----------------------------- ```
1 parent a5cd19f commit 693a987

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

flang/test/Driver/lto-bc.f90

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
! Test that the output is LLVM bitcode for LTO and not a native objectfile by
22
! disassembling it to LLVM IR. Also tests that module summaries are emitted for LTO
33

4+
! UNSUPPORTED: system-darwin
5+
46
! RUN: %flang %s -c -o - | not llvm-dis -o %t
57
! RUN: %flang_fc1 %s -emit-llvm-bc -o - | llvm-dis -o - | FileCheck %s
68
! CHECK: define void @_QQmain()

0 commit comments

Comments
 (0)