summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/intrinsic_shadow_3.f03
blob: 069a99b343350223a9af35b364255e07aa8f9bd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
! { dg-do compile }
! { dg-options "-Wno-intrinsic-shadow -fall-intrinsics" }

! PR fortran/33141
! Check that the "intrinsic shadow" warnings are not emitted if the warning
! is negated.

MODULE testmod
  IMPLICIT NONE

CONTAINS

  REAL FUNCTION asin (arg) ! { dg-bogus "shadow the intrinsic" }
    IMPLICIT NONE
    REAL :: arg
  END FUNCTION asin

END MODULE testmod

REAL FUNCTION acos (arg) ! { dg-bogus "of an intrinsic" }
  IMPLICIT NONE
  REAL :: arg
END FUNCTION acos

! We do only compile, so no main program needed.

! { dg-final { cleanup-modules "testmod" } }