[flang][openacc] Use OpenACC terminator instead of fir.unreachable after Stop stmt...
[llvm-project.git] / flang / test / Driver / compiler_options.f90
blobc329a5033884bcf65825a367959f1e6cbc664a6a
1 ! RUN: %flang -S -emit-llvm -o - %s | FileCheck %s
2 ! Test communication of COMPILER_OPTIONS from flang-new to flang-new -fc1.
3 ! CHECK: [[OPTSVAR:@_QQcl\.[0-9a-f]+]] = {{[a-z]+}} constant [[[OPTSLEN:[0-9]+]] x i8] c"{{.*}}flang-new{{(\.exe)?}} -S -emit-llvm -o - {{.*}}compiler_options.f90"
4 program main
5 use ISO_FORTRAN_ENV, only: compiler_options
6 implicit none
7 character (len = :), allocatable :: v
8 ! CHECK: call void @llvm.memmove.p0.p0.i64(ptr %{{[0-9]+}}, ptr [[OPTSVAR]], i64 [[OPTSLEN]], i1 false)
9 v = compiler_options()
10 print *, v
11 deallocate(v)
12 close(1)
13 end program main