[ObjectYAML][NFC] Simplify ELFState<ELFT>::initProgramHeaders() (#123703)
[llvm-project.git] / flang / test / Semantics / elemental02.f90
blob7f8fb4a378b7ebb68dc82f4d7133940816211e5f
1 ! RUN: %python %S/test_errors.py %s %flang_fc1
2 subroutine s(a)
3 real a(*)
4 interface
5 elemental function ef(efarg)
6 real, intent(in) :: efarg
7 end
8 end interface
9 !ERROR: Whole assumed-size array 'a' may not be used as an argument to an elemental procedure
10 print *, sqrt(a)
11 !ERROR: Whole assumed-size array 'a' may not be used as an argument to an elemental procedure
12 print *, ef(a)
13 end