[WebAssembly] Fix asan issue from https://reviews.llvm.org/D121349
[llvm-project.git] / flang / test / Semantics / kinds04.f90
blob26957d9cfc1dc5288e7e8fadb5e928c029e12880
1 ! RUN: %python %S/test_errors.py %s %flang_fc1
2 ! C716 If both kind-param and exponent-letter appear, exponent-letter
3 ! shall be E.
4 ! C717 The value of kind-param shall specify an approximation method that
5 ! exists on the processor.
6 subroutine s(var)
7 real :: realvar1 = 4.0E6_4
8 real :: realvar2 = 4.0D6
9 real :: realvar3 = 4.0Q6
10 real :: realvar4 = 4.0D6_8
11 real :: realvar5 = 4.0Q6_16
12 real :: realvar6 = 4.0E6_8
13 real :: realvar7 = 4.0E6_10
14 real :: realvar8 = 4.0E6_16
15 !ERROR: Unsupported REAL(KIND=32)
16 real :: realvar9 = 4.0E6_32
18 double precision :: doublevar1 = 4.0E6_4
19 double precision :: doublevar2 = 4.0D6
20 double precision :: doublevar3 = 4.0Q6
21 double precision :: doublevar4 = 4.0D6_8
22 double precision :: doublevar5 = 4.0Q6_16
23 double precision :: doublevar6 = 4.0E6_8
24 double precision :: doublevar7 = 4.0E6_10
25 double precision :: doublevar8 = 4.0E6_16
26 !ERROR: Unsupported REAL(KIND=32)
27 double precision :: doublevar9 = 4.0E6_32
28 end subroutine s