Files
llvm/flang/test/Driver/emit-llvm.f90
Mats Petersson 81181089c6 [Flang][Driver]Add datalayout before doing LLVM-IR transformation
The earlier available datalyaout allows MLIR to LLVM-IR transformation
to use the datalayout for decisions, such as comparing sizes for
different types of integers.

This should solve https://github.com/llvm/llvm-project/issues/57230

Reviewed By: awarzynski, vzakhari

Differential Revision: https://reviews.llvm.org/D133568
2022-11-03 12:16:22 +00:00

15 lines
343 B
Fortran

! Test the `-emit-llvm` option
! UNSUPPORTED: system-windows
! Windows is currently not supported in flang/lib/Optimizer/CodeGen/Target.cpp
! RUN: %flang_fc1 -emit-llvm %s -o - | FileCheck %s
! CHECK: ; ModuleID = 'FIRModule'
! CHECK: target datalayout =
! CHECK: define void @_QQmain()
! CHECK-NEXT: ret void
! CHECK-NEXT: }
end program