Browse Source

Tests: Fix Fortran syntax for initialized variable

LFortran 0.44 errors without the `::`.
Brad King 9 months ago
parent
commit
0d0a94bcfb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Tests/FortranOnly/preprocess2.f

+ 1 - 1
Tests/FortranOnly/preprocess2.f

@@ -1,6 +1,6 @@
 #define int INTEGER
 #define int INTEGER
        ! This single unmatched quote ' should not cause an error during compilation
        ! This single unmatched quote ' should not cause an error during compilation
        PROGRAM PREPRO
        PROGRAM PREPRO
-       int f = 1
+       int :: f = 1
        PRINT*, f
        PRINT*, f
        END
        END