[flang] Accept polymorphic component element in storage_size
[llvm-project.git] / flang / test / Evaluate / folding22.f90
blob3a9812ce75dd100929815ff21d31d4b308c885c6
1 ! RUN: %python %S/test_folding.py %s %flang_fc1
3 ! Test character concatenation folding
5 logical, parameter :: test_scalar_scalar = ('ab' // 'cde').eq.('abcde')
7 character(2), parameter :: scalar_array(2) = ['1','2'] // 'a'
8 logical, parameter :: test_scalar_array = all(scalar_array.eq.(['1a', '2a']))
10 character(2), parameter :: array_scalar(2) = '1' // ['a', 'b']
11 logical, parameter :: test_array_scalar = all(array_scalar.eq.(['1a', '1b']))
13 character(2), parameter :: array_array(2) = ['1','2'] // ['a', 'b']
14 logical, parameter :: test_array_array = all(array_array.eq.(['1a', '2b']))
17 character(1), parameter :: input(2) = ['x', 'y']
18 character(*), parameter :: zero_sized(*) = input(2:1:1) // 'abcde'
19 logical, parameter :: test_zero_sized = len(zero_sized).eq.6
21 end