! 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
