2015-07-03 Christophe Lyon <christophe.lyon@linaro.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / protected_9.f90
blob2786419f53a76560a1f95539fc0fdfab264c367d
1 ! { dg-do compile }
2 ! PR fortran/66052
5 ! Original code from Gerhard Steinmetz
6 ! <gerhard dot steinmetz dot fortran at t-online dot de>
7 module a
8 contains
9 protected x ! { dg-error "only allowed in specification part" }
10 end module a
12 program p
13 contains
14 protected x ! { dg-error "only allowed in specification part" }
15 end