gcc/testsuite/gfortran.dg/lto/pr60635_0.f90
raw| 1 | ! { dg-lto-do link } |
| 2 | ! { dg-lto-options {{ -Wno-lto-type-mismatch }} } |
| 3 | program test |
| 4 | use iso_fortran_env |
| 5 | |
| 6 | interface |
| 7 | integer(int16) function bigendc16(x) bind(C) |
| 8 | import |
| 9 | integer(int16), intent(in) :: x |
| 10 | end function |
| 11 | end interface |
| 12 | |
| 13 | integer(int16) :: x16 = 12345 |
| 14 | x16 = bigendc16(x16) |
| 15 | print *,x16 |
| 16 | end program |
| 17 |