llvm-project/flang/test/Lower/basic-program.f90
Renaud-K 2c53840199 [flang] Adding fir::getSymbolAttrName attribute to the function corresponding to the main subprogram.
This is because the source name cannot be deconstructed from _QQmain

Differential revision: https://reviews.llvm.org/D144295
2023-02-17 18:20:03 -08:00

14 lines
333 B
Fortran

! RUN: bbc %s --pft-test | FileCheck %s
! RUN: bbc %s -o "-" -emit-fir | FileCheck %s --check-prefix=FIR
program basic
end program
! CHECK: 1 Program basic
! CHECK: 1 EndProgramStmt: end program
! CHECK: End Program basic
! FIR-LABEL: func @_QQmain() attributes {fir.bindc_name = "basic"} {
! FIR: return
! FIR: }