14 lines · plain
1! RUN: %flang -S -emit-llvm -flang-deprecated-no-hlfir -o - %s | FileCheck %s2! Test communication of COMPILER_OPTIONS from flang to flang -fc1.3! CHECK: [[OPTSVAR:@_QQclX[0-9a-f]+]] = {{[a-z]+}} constant [[[OPTSLEN:[0-9]+]] x i8] c"{{.*}}flang{{(\.exe)?}} {{.*}}-S -emit-llvm -flang-deprecated-no-hlfir -o - {{.*}}compiler-options.f90"4program main5 use ISO_FORTRAN_ENV, only: compiler_options6 implicit none7 character (len = :), allocatable :: v8! CHECK: call void @llvm.memmove.p0.p0.i64(ptr %{{[0-9]+}}, ptr [[OPTSVAR]], i64 [[OPTSLEN]], i1 false)9 v = compiler_options()10 print *, v11 deallocate(v)12 close(1)13end program main14