aboutsummaryrefslogtreecommitdiff
path: root/flang/test/Driver/fatal-errors-parsing.f90
blob: fd8e167a4807c703373620530f843b5c5deb4905 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
!RUN: not %flang_fc1 -fsyntax-only -Wfatal-errors %s 2>&1 | FileCheck %s --check-prefix=CHECK1
!RUN: not %flang_fc1 -fsyntax-only %s 2>&1 | FileCheck %s --check-prefix=CHECK2

program p
 contains
   ! CHECK1: fatal-errors-parsing.f90:{{.*}} error:
   ! CHECK2: fatal-errors-parsing.f90:{{.*}} error:
continue
end

subroutine s
contains
   ! CHECK1-NOT: error:
   ! CHECK2: fatal-errors-parsing.f90:{{.*}} error:
continue
end