[flang][driver] Modify the existing test cases that use -Mstandard in f18, to use -pedantic and %flang_fc1 to share with the new driver

Reviewed By: awarzynski

Differential Revision: https://reviews.llvm.org/D99518
This commit is contained in:
Arnamoy Bhattacharyya 2021-04-05 12:58:00 -04:00 committed by Arnamoy Bhattacharyya
parent 6a82ace5f2
commit 31ad5c14fe
17 changed files with 31 additions and 31 deletions

View File

@ -1,7 +1,7 @@
! Error test -- DO loop uses obsolete loop termination statement
! See R1131 and C1131
! RUN: %f18 -funparse-with-symbols -Mstandard %s 2>&1 | FileCheck %s
! RUN: %flang_fc1 -fdebug-unparse-with-symbols -pedantic %s 2>&1 | FileCheck %s
! CHECK: A DO loop should terminate with an END DO or CONTINUE
program endDo

View File

@ -2,10 +2,10 @@
! See R1131 and C1133
! By default, this is not an error and label do are rewritten to non-label do.
! A warning is generated with -Mstandard
! A warning is generated with -pedantic
! RUN: %f18 -funparse-with-symbols -Mstandard %s 2>%t.stderr | FileCheck %s
! RUN: %flang_fc1 -fdebug-unparse-with-symbols -pedantic %s 2>%t.stderr | FileCheck %s
! CHECK: end do

View File

@ -2,10 +2,10 @@
! See R1131 and C1133
! By default, this is not an error and label do are rewritten to non-label do.
! A warning is generated with -Mstandard
! A warning is generated with -pedantic
! RUN: %f18 -funparse-with-symbols -Mstandard %s 2>%t.stderr | FileCheck %s
! RUN: %flang_fc1 -fdebug-unparse-with-symbols -pedantic %s 2>%t.stderr | FileCheck %s
! CHECK: end do

View File

@ -2,10 +2,10 @@
! See R1131 and C1133
! By default, this is not an error and label do are rewritten to non-label do.
! A warning is generated with -Mstandard
! A warning is generated with -pedantic
! RUN: %f18 -funparse-with-symbols -Mstandard %s 2>%t.stderr | FileCheck %s
! RUN: %flang_fc1 -fdebug-unparse-with-symbols -pedantic %s 2>%t.stderr | FileCheck %s
! CHECK: end do

View File

@ -2,10 +2,10 @@
! See R1131 and C1133
! By default, this is not an error and label do are rewritten to non-label do.
! A warning is generated with -Mstandard
! A warning is generated with -pedantic
! RUN: %f18 -funparse-with-symbols -Mstandard %s 2>%t.stderr | FileCheck %s
! RUN: %flang_fc1 -fdebug-unparse-with-symbols -pedantic %s 2>%t.stderr | FileCheck %s
! CHECK: end do

View File

@ -2,9 +2,9 @@
! See R1131 and C1133
! By default, this is not an error and label do are rewritten to non-label do.
! A warning is generated with -Mstandard
! A warning is generated with -pedantic
! RUN: %f18 -funparse-with-symbols -Mstandard %s 2>%t.stderr | FileCheck %s
! RUN: %flang_fc1 -fdebug-unparse-with-symbols -pedantic %s 2>%t.stderr | FileCheck %s
! CHECK: end do

View File

@ -2,9 +2,9 @@
! See R1131 and C1133
! By default, this is not an error and label do are rewritten to non-label do.
! A warning is generated with -Mstandard
! A warning is generated with -pedantic
! RUN: %f18 -funparse-with-symbols -Mstandard %s 2>%t.stderr | FileCheck %s
! RUN: %flang_fc1 -fdebug-unparse-with-symbols -pedantic %s 2>%t.stderr | FileCheck %s
! CHECK: end do

View File

@ -2,9 +2,9 @@
! See R1131 and C1133
! By default, this is not an error and label do are rewritten to non-label do.
! A warning is generated with -Mstandard
! A warning is generated with -pedantic
! RUN: %f18 -funparse-with-symbols -Mstandard %s 2>%t.stderr | FileCheck %s
! RUN: %flang_fc1 -fdebug-unparse-with-symbols -pedantic %s 2>%t.stderr | FileCheck %s
! CHECK: end do

View File

@ -2,9 +2,9 @@
! See R1131 and C1133
! By default, this is not an error and label do are rewritten to non-label do.
! A warning is generated with -Mstandard
! A warning is generated with -pedantic
! RUN: %f18 -funparse-with-symbols -Mstandard %s 2>%t.stderr | FileCheck %s
! RUN: %flang_fc1 -fdebug-unparse-with-symbols -pedantic %s 2>%t.stderr | FileCheck %s
! CHECK: end do

View File

@ -2,9 +2,9 @@
! See R1131 and C1133
! By default, this is not an error and label do are rewritten to non-label do.
! A warning is generated with -Mstandard
! A warning is generated with -pedantic
! RUN: %f18 -funparse-with-symbols -Mstandard %s 2>%t.stderr | FileCheck %s
! RUN: %flang_fc1 -fdebug-unparse-with-symbols -pedantic %s 2>%t.stderr | FileCheck %s
! CHECK: end do

View File

@ -2,9 +2,9 @@
! See R1131 and C1133
! By default, this is not an error and label do are rewritten to non-label do.
! A warning is generated with -Mstandard
! A warning is generated with -pedantic
! RUN: %f18 -funparse-with-symbols -Mstandard %s 2>%t.stderr | FileCheck %s
! RUN: %flang_fc1 -fdebug-unparse-with-symbols -pedantic %s 2>%t.stderr | FileCheck %s
! CHECK: end do

View File

@ -2,9 +2,9 @@
! See R1131 and C1133
! By default, this is not an error and label do are rewritten to non-label do.
! A warning is generated with -Mstandard
! A warning is generated with -pedantic
! RUN: %f18 -funparse-with-symbols -Mstandard %s 2>%t.stderr | FileCheck %s
! RUN: %flang_fc1 -fdebug-unparse-with-symbols -pedantic %s 2>%t.stderr | FileCheck %s
! CHECK: end do

View File

@ -1,7 +1,7 @@
! Check that if there is a label or a name on an label-do-stmt,
! then it is not lost when rewriting it to an non-label-do-stmt.
! RUN: %f18 -funparse-with-symbols -Mstandard %s 2>&1 | FileCheck %s
! RUN: %flang_fc1 -fdebug-unparse-with-symbols -pedantic %s 2>&1 | FileCheck %s
! CHECK: end do
! CHECK: 2 do

View File

@ -1,4 +1,4 @@
! RUN: %S/test_errors.sh %s %t %f18 -Mstandard -Werror
! RUN: %S/test_errors.sh %s %t %flang_fc1 -pedantic -Werror
! Issue 458 -- semantic checks for a normal DO loop. The DO variable
! and the initial, final, and step expressions must be INTEGER if the

View File

@ -1,4 +1,4 @@
! RUN: %S/test_errors.sh %s %t %f18 -Mstandard
! RUN: %S/test_errors.sh %s %t %flang_fc1 -pedantic
write(*, '(B0)')
write(*, '(B3)')

View File

@ -1,5 +1,5 @@
! RUN: %f18 -funparse-with-symbols -DSTRICT_F18 -Mstandard %s 2>&1 | FileCheck %s
! RUN: %f18 -funparse-with-symbols -DARCHAIC_FORTRAN %s 2>&1 | FileCheck %s
! RUN: %flang_fc1 -fdebug-unparse-with-symbols -DSTRICT_F18 -pedantic %s 2>&1 | FileCheck %s
! RUN: %flang_fc1 -fdebug-unparse-with-symbols -DARCHAIC_FORTRAN %s 2>&1 | FileCheck %s
! CHECK-NOT: :{{[[:space:]]}}error:{{[[:space:]]}}
! FIXME: the above check line does not work because diags are not emitted with error: in them.
@ -122,7 +122,7 @@ subroutine do_loop09(a,n,j)
goto 400
200 print *, "found the index", j
print *, "value at", j, "is", a(j)
goto 300 ! FIXME: emits diagnostic even without -Mstandard
goto 300 ! FIXME: emits diagnostic even without -pedantic
400 do 100 i = 1, n
if (i .eq. j) then
goto 200 ! extension: extended GOTO ranges

View File

@ -1,4 +1,4 @@
! RUN: not %f18 -Mstandard %s 2>&1 | FileCheck %s
! RUN: not %flang_fc1 -pedantic %s 2>&1 | FileCheck %s
! Test extension: allow forward references to dummy arguments
! from specification expressions in scopes with IMPLICIT NONE(TYPE),
! as long as those symbols are eventually typed later with the
@ -20,7 +20,7 @@ subroutine foo2(a, n2)
end
!CHECK: Dummy argument 'n3' was used without being explicitly typed
!CHECK-NOT: error:
!CHECK-NOT: error: Dummy argument 'n3'
subroutine foo3(a, n3)
implicit none
real a(n3)