2018-11-06 23:07:03 +01:00
|
|
|
; Create a case that produces a simple diagnostic.
|
|
|
|
; RUN: echo foo > %t.in
|
|
|
|
; CHECK: foo
|
|
|
|
; CHECK: bar
|
|
|
|
|
2018-11-06 23:42:10 +01:00
|
|
|
; RUN: env FILECHECK_OPTS= \
|
2018-11-06 23:07:03 +01:00
|
|
|
; RUN: not FileCheck %s -input-file %t.in 2>&1 \
|
|
|
|
; RUN: | FileCheck -check-prefix QUIET %s
|
|
|
|
|
2018-11-06 23:42:10 +01:00
|
|
|
; RUN: env FILECHECK_OPTS=-v \
|
2018-11-06 23:07:03 +01:00
|
|
|
; RUN: not FileCheck %s -input-file %t.in 2>&1 \
|
|
|
|
; RUN: | FileCheck -check-prefix VERB %s
|
|
|
|
|
|
|
|
; QUIET-NOT: remark: {{CHECK}}: expected string found in input
|
|
|
|
; VERB: remark: {{CHECK}}: expected string found in input
|