libgfortran/ChangeLog:
[official-gcc.git] / gcc / testsuite / gfortran.dg / binding_label_tests_11_main.f03
blob851c32ce7cdbf5b356c94c0635374e38e17d84cc
1 ! { dg-do compile }
2 ! This file must be compiled AFTER binding_label_tests_11.f03, which it 
3 ! should be because dejagnu will sort the files.
4 module binding_label_tests_11_main
5   use iso_c_binding, only: c_int
6   implicit none
7 contains
8   function one() bind(c, name="c_one") ! { dg-error "Procedure one with binding label c_one at .1. uses the same global identifier as entity at .2." }
9     integer(c_int) one
10     one = 1
11   end function one
12 end module binding_label_tests_11_main
14 program main
15   use binding_label_tests_11 ! { dg-error "Procedure one with binding label c_one at .1. uses the same global identifier as entity at .2." }
16   use binding_label_tests_11_main
17 end program main
18 ! { dg-final { cleanup-modules "binding_label_tests_11" } }