2 ! { dg-options "-std=f95" }
3 ! { dg-shouldfail "Fortran 2003 feature with -std=f95" }
4 ! Test whether import does not work with -std=f95
13 if(x%i /= 7) call abort()
24 if(x%i /= 2) call abort()
40 import ! { dg-error "Fortran 2003: IMPORT statement" }
41 type(myType) :: x ! { dg-error "not been declared within the interface" }
44 import :: myType3 ! { dg-error "Fortran 2003: IMPORT statement" }
45 import myType3 ! { dg-error "Fortran 2003: IMPORT statement" }
46 type(myType3) :: x ! { dg-error "not been declared within the interface" }
53 call bar(y) ! { dg-error "Type/rank mismatch in argument" }
54 if(y%i /= 5) call abort()
56 call test(z) ! { dg-error "Type/rank mismatch in argument" }
57 if(z%i /= 1) call abort()