Mercurial > hg > CbC > CbC_gcc
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 |
rev | line source |
---|---|
111 | 1 ! { dg-do compile } |
2 ! { dg-compile-aux-modules "binding_label_tests_11.f03" } | |
3 module binding_label_tests_11_main | |
4 use iso_c_binding, only: c_int | |
5 implicit none | |
6 contains | |
131 | 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 | 8 integer(c_int) one |
9 one = 1 | |
10 end function one | |
11 end module binding_label_tests_11_main | |
12 | |
13 program main | |
131 | 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 | 15 use binding_label_tests_11_main |
16 end program main |