[flang] Accept polymorphic component element in storage_size
[llvm-project.git] / flang / test / Semantics / kinds04_q10.f90
blob07da32e92c0f78fdcc9e41ca92c0aac8f80467f0
1 ! RUN: %python %S/test_errors.py %s %flang_fc1 -triple x86_64-unknown-linux-gnu
2 ! C716 If both kind-param and exponent-letter appear, exponent-letter
3 ! shall be E. (As an extension we also allow an exponent-letter which matches
4 ! the kind-param)
5 ! C717 The value of kind-param shall specify an approximation method that
6 ! exists on the processor.
8 ! This test is for x86_64, where exponent-letter 'q' is for
9 ! 10-byte extended precision
10 ! UNSUPPORTED: system-windows
12 subroutine s(var)
13 real :: realvar1 = 4.0E6_4
14 real :: realvar2 = 4.0D6
15 real :: realvar3 = 4.0Q6
16 real :: realvar4 = 4.0D6_8
17 real :: realvar5 = 4.0Q6_10
18 !WARNING: Explicit kind parameter on real constant disagrees with exponent letter 'q'
19 real :: realvar6 = 4.0Q6_16
20 real :: realvar7 = 4.0E6_8
21 real :: realvar8 = 4.0E6_10
22 real :: realvar9 = 4.0E6_16
23 !ERROR: Unsupported REAL(KIND=32)
24 real :: realvar10 = 4.0E6_32
26 double precision :: doublevar1 = 4.0E6_4
27 double precision :: doublevar2 = 4.0D6
28 double precision :: doublevar3 = 4.0Q6
29 double precision :: doublevar4 = 4.0D6_8
30 !WARNING: Explicit kind parameter on real constant disagrees with exponent letter 'q'
31 double precision :: doublevar5 = 4.0Q6_16
32 double precision :: doublevar6 = 4.0E6_8
33 double precision :: doublevar7 = 4.0E6_10
34 double precision :: doublevar8 = 4.0E6_16
35 !ERROR: Unsupported REAL(KIND=32)
36 double precision :: doublevar9 = 4.0E6_32
37 end subroutine s