[flang] Accept polymorphic component element in storage_size
[llvm-project.git] / flang / test / Semantics / bind-c08.f90
blobfe04f7c5e8c2a16e25dcba83d000ac1bbf515be6
1 ! RUN: %python %S/test_errors.py %s %flang_fc1
2 ! Check for C1546 and 18.3.6
4 ! ERROR: 'test1' may not have both the BIND(C) and ELEMENTAL attributes
5 elemental subroutine test1() bind(c)
6 end
8 subroutine test3(x) bind(c)
9 ! ERROR: VALUE attribute may not apply to an array in a BIND(C) procedure
10 integer, value :: x(100)
11 end