annotate gcc/testsuite/gfortran.dg/binding_label_tests_11_main.f03 @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 84e7813d76e9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ! { dg-do compile }
kono
parents:
diff changeset
2 ! { dg-compile-aux-modules "binding_label_tests_11.f03" }
kono
parents:
diff changeset
3 module binding_label_tests_11_main
kono
parents:
diff changeset
4 use iso_c_binding, only: c_int
kono
parents:
diff changeset
5 implicit none
kono
parents:
diff changeset
6 contains
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
7 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." }
111
kono
parents:
diff changeset
8 integer(c_int) one
kono
parents:
diff changeset
9 one = 1
kono
parents:
diff changeset
10 end function one
kono
parents:
diff changeset
11 end module binding_label_tests_11_main
kono
parents:
diff changeset
12
kono
parents:
diff changeset
13 program main
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
14 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." }
111
kono
parents:
diff changeset
15 use binding_label_tests_11_main
kono
parents:
diff changeset
16 end program main