Break circular dependency between FIR dialect and utilities
[llvm-project.git] / flang / test / Semantics / generic06.f90
blob7f4f54b3b52a0efaf7605e62dadcff0a9f2d768a
1 ! RUN: %python %S/test_errors.py %s %flang_fc1
2 module m
3 !ERROR: Specific procedure 'sin' of generic interface 'yintercept' may not be INTRINSIC
4 intrinsic sin
5 interface yIntercept
6 procedure sin
7 end interface
8 !ERROR: Specific procedure 'cos' of generic interface 'xintercept' may not be INTRINSIC
9 intrinsic cos
10 generic :: xIntercept => cos
11 end module
13 subroutine foo
14 interface slope
15 procedure tan
16 end interface
17 !ERROR: Specific procedure 'tan' of generic interface 'slope' may not be a statement function
18 tan(x) = sin(x) / cos(x)
19 end subroutine