[flang] Accept polymorphic component element in storage_size
[llvm-project.git] / flang / test / Driver / color-diagnostics-scan.f
blobd901d77adaf8ffa97ccb6256fff4d6b2053ff8a5
1 ! Test the behaviors of -f{no-}color-diagnostics when emitting scanning
2 ! diagnostics.
3 ! Windows command prompt doesn't support ANSI escape sequences.
4 ! REQUIRES: shell
6 ! RUN: not %flang %s -E -Werror -fcolor-diagnostics 2>&1 \
7 ! RUN: | FileCheck %s --check-prefix=CHECK_CD
8 ! RUN: not %flang %s -E -Werror -fno-color-diagnostics 2>&1 \
9 ! RUN: | FileCheck %s --check-prefix=CHECK_NCD
10 ! RUN: not %flang_fc1 -E -Werror %s -fcolor-diagnostics 2>&1 \
11 ! RUN: | FileCheck %s --check-prefix=CHECK_CD
12 ! RUN: not %flang_fc1 -E -Werror %s 2>&1 | FileCheck %s --check-prefix=CHECK_NCD
14 ! CHECK_CD: {{.*}}[0;1;35mwarning: {{.*}}[0mCharacter in fixed-form label field must be a digit
16 ! CHECK_NCD: warning: Character in fixed-form label field must be a digit
18 1 continue
19 end