2 ! { dg-shouldfail "Invalid use of IMPORT" }
3 ! Test invalid uses of import
8 import ! { dg-error "only permitted in an INTERFACE body" }
15 import ! { dg-error "only permitted in an INTERFACE body" }
25 import ! { dg-error "only permitted in an INTERFACE body" }
27 import foob ! { dg-error "Cannot IMPORT 'foob' from host scoping unit" }
30 import :: ! { dg-error "Expecting list of named entities" }