xref: /llvm-project/flang/test/Evaluate/compiler_options_fc1.f90 (revision 541f5c4a6db35870091dd15dfa09dde751229a17)
1! RUN: %flang_fc1 -fdebug-unparse %s 2>&1 | FileCheck %s
2
3program main
4    use ISO_FORTRAN_ENV, only: compiler_options
5    implicit none
6    character (len = :), allocatable :: v
7! CHECK: v="{{.*}}flang{{.*}} -fdebug-unparse {{.*}}"
8    v = compiler_options()
9    print *, v
10    deallocate(v)
11    close(1)
12end program main
13