[LLVM] Fix Maintainers.md formatting (NFC)
[llvm-project.git] / flang / test / Driver / color-diagnostics-parse.f90
blob3682224ac95250776da5b3e1c1f8cd3495ae1a30
1 ! Test the behaviors of -f{no-}color-diagnostics and -f{no-}diagnostics-color
2 ! when emitting parsing diagnostics.
3 ! Windows command prompt doesn't support ANSI escape sequences.
4 ! REQUIRES: shell
6 ! RUN: not %flang %s -fcolor-diagnostics 2>&1 \
7 ! RUN: | FileCheck %s --check-prefix=CHECK_CD
8 ! RUN: not %flang %s -fdiagnostics-color 2>&1 \
9 ! RUN: | FileCheck %s --check-prefix=CHECK_CD
10 ! RUN: not %flang %s -fdiagnostics-color=always 2>&1 \
11 ! RUN: | FileCheck %s --check-prefix=CHECK_CD
13 ! RUN: not %flang %s -fno-color-diagnostics 2>&1 \
14 ! RUN: | FileCheck %s --check-prefix=CHECK_NCD
15 ! RUN: not %flang %s -fno-diagnostics-color 2>&1 \
16 ! RUN: | FileCheck %s --check-prefix=CHECK_NCD
17 ! RUN: not %flang %s -fdiagnostics-color=never 2>&1 \
18 ! RUN: | FileCheck %s --check-prefix=CHECK_NCD
20 ! RUN: not %flang_fc1 %s -fcolor-diagnostics 2>&1 \
21 ! RUN: | FileCheck %s --check-prefix=CHECK_CD
22 ! RUN: not %flang_fc1 %s 2>&1 | FileCheck %s --check-prefix=CHECK_NCD
24 ! CHECK_CD: {{.*}}[0;1;31merror: {{.*}}[0mexpected end of statement
26 ! CHECK_NCD: error: expected end of statement
28 program m
29 integer :: i =
30 end