llvm-project/flang/test/Driver/dumpmachine.f90
Yuanfang Chen 1072fcd222
[flang][driver] support -dumpversion and -dumpmachine (#68896)
Match GCC driver. GCC has -cc1/-fc1 support too, but this patch does not
address that.
2023-10-24 01:32:39 -07:00

9 lines
333 B
Fortran

! Test that -dumpmachine prints the target triple.
! Note: Debian GCC may omit "unknown-".
! RUN: %flang --target=x86_64-linux-gnu -dumpmachine | FileCheck %s --check-prefix=X86_64
! X86_64: x86_64-unknown-linux-gnu
! RUN: %flang --target=xxx-pc-freebsd -dumpmachine | FileCheck %s --check-prefix=FREEBSD
! FREEBSD: xxx-pc-freebsd