PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / program_name_1.f90
blob6d6c79bb06d9e87489ceefafd616376792af514b
1 ! { dg-do compile }
2 ! Tests the fix for PR28762 in which the program name would cause
3 ! the compiler to test the write statement as a variable thereby generating
4 ! an "Expecting VARIABLE" error.
6 ! Contributed by David Ham <David@ham.dropbear.id.au>
8 program write
9 integer :: debuglevel = 1
10 if (0 < debuglevel) write (*,*) "Hello World"
11 end program write