AVR: tree-optimization/115307 - Work around isinf bloat from early passes.
[official-gcc.git] / gcc / testsuite / gfortran.dg / use_rename_6.f90
blob35b225f84454f03236d4576be7a31de529180656
1 ! { dg-do compile }
2 ! { dg-options "-fdump-tree-original" }
4 ! PR fortran/44702
6 ! Based on a test case by Joe Krahn.
8 ! Multiple import of the same symbol was failing for
9 ! intrinsic modules.
11 subroutine one()
12 use iso_c_binding, only: a => c_ptr, b => c_ptr, c_ptr
13 implicit none
14 type(a) :: x
15 type(b) :: y
16 type(c_ptr) :: z
17 end subroutine one
19 subroutine two()
20 use iso_c_binding, a => c_ptr, b => c_ptr
21 implicit none
22 type(a) :: x
23 type(b) :: y
24 end subroutine two
26 subroutine three()
27 use iso_fortran_env, only: a => error_unit, b => error_unit, error_unit
28 implicit none
29 if(a /= b) call shall_not_be_there()
30 if(a /= error_unit) call shall_not_be_there()
31 end subroutine three
33 subroutine four()
34 use iso_fortran_env, a => error_unit, b => error_unit
35 implicit none
36 if(a /= b) call shall_not_be_there()
37 end subroutine four
39 ! { dg-final { scan-tree-dump-times "shall_not_be_there" 0 "original" } }