[flang][openacc] Use OpenACC terminator instead of fir.unreachable after Stop stmt...
[llvm-project.git] / flang / test / Driver / flarge-sizes.f90
blob6ea5876676ed1fad148a2e355fc813e76984c777
1 ! Ensure argument -flarge-sizes works as expected.
2 ! TODO: Add checks when actual codegen is possible.
4 !--------------------------
5 ! FLANG DRIVER (flang-new)
6 !--------------------------
7 ! RUN: rm -rf %t/dir-flang-new && mkdir -p %t/dir-flang-new && %flang -fsyntax-only -module-dir %t/dir-flang-new %s 2>&1
8 ! RUN: cat %t/dir-flang-new/m.mod | FileCheck %s --check-prefix=NOLARGE
9 ! RUN: rm -rf %t/dir-flang-new && mkdir -p %t/dir-flang-new && %flang -fsyntax-only -flarge-sizes -module-dir %t/dir-flang-new %s 2>&1
10 ! RUN: cat %t/dir-flang-new/m.mod | FileCheck %s --check-prefix=LARGE
12 !-----------------------------------------
13 ! FRONTEND FLANG DRIVER (flang-new -fc1)
14 !-----------------------------------------
15 ! RUN: rm -rf %t/dir-flang-new && mkdir -p %t/dir-flang-new && %flang_fc1 -fsyntax-only -module-dir %t/dir-flang-new %s 2>&1
16 ! RUN: cat %t/dir-flang-new/m.mod | FileCheck %s --check-prefix=NOLARGE
17 ! RUN: rm -rf %t/dir-flang-new && mkdir -p %t/dir-flang-new && %flang_fc1 -fsyntax-only -flarge-sizes -module-dir %t/dir-flang-new %s 2>&1
18 ! RUN: cat %t/dir-flang-new/m.mod | FileCheck %s --check-prefix=LARGE
20 ! NOLARGE: real(4)::z(1_8:10_8)
21 ! NOLARGE-NEXT: integer(4),parameter::size_kind=4_4
23 ! LARGE: real(4)::z(1_8:10_8)
24 ! LARGE-NEXT: integer(4),parameter::size_kind=8_4
26 module m
27 implicit none
28 real :: z(10)
29 integer, parameter :: size_kind = kind(ubound(z, 1)) !-flarge-sizes
30 end