[flang] Accept polymorphic component element in storage_size
[llvm-project.git] / flang / test / Semantics / multi-programs05.f90
blob8ef061ed1e2e5c59049ccfac39167d469b6bcd9d
1 ! RUN: %python %S/test_errors.py %s %flang_fc1
2 ! Test the restriction in 5.2.2
4 program m
5 end
6 !ERROR: A source file cannot contain more than one main program
7 program m2
8 end