20 lines · plain
1! This file tests invalid usage of the -Rpass family of flags (-Rpass, -Rpass-missed2! and -Rpass-analysis)3! loop-delete isn't enabled at O0 so we use at least O14 5! Check error on invalid regex -Rpass message is emitted6! RUN: not %flang %s -O1 -Rpass=[ -c 2>&1 | FileCheck %s --check-prefix=REGEX-INVALID7 8! Check "unknown remark option" warning9! RUN: %flang %s -O1 -R -c 2>&1 | FileCheck %s --check-prefix=WARN10 11! Check "unknown remark option" warning with suggestion12! RUN: %flang %s -O1 -Rpas -c 2>&1 | FileCheck %s --check-prefix=WARN-SUGGEST13 14! REGEX-INVALID: error: in pattern '-Rpass=[': brackets ([ ]) not balanced15! WARN: warning: unknown remark option '-R' [-Wunknown-warning-option]16! WARN-SUGGEST: warning: unknown remark option '-Rpas'; did you mean '-Rpass'? [-Wunknown-warning-option]17 18program forttest19end program forttest20