OSDN Git Service

5107a07da77570ddb8002e44cbe0545e393c4017
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gfortran.dg / static_linking_1.f
1 ! { dg-require-effective-target static_libgfortran }
2 ! { dg-do run }
3 ! { dg-additional-sources static_linking_1.c }
4 ! { dg-options "-static" }
5 !
6 ! This testcase checks that statically linking libgfortran with C main()
7 ! really calls the constructor function
8 ! PR libfortran/22298
9       subroutine f
10         print *, "subroutine output"
11       end