mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-31 07:52:55 +01:00
9666dd3633
FileCheck should check to make sure the prefix was found, and not a word containing it (e.g -check-prefix=BASEREL shouldn't match NOBASEREL). Patch by Ron Ofir. llvm-svn: 188221
10 lines
391 B
Plaintext
10 lines
391 B
Plaintext
// RUN: FileCheck -check-prefix=ANOTHER-PREFIX -input-file %s %s
|
|
// RUN: not FileCheck -check-prefix=PREFIX -input-file %s %s 2>&1 | FileCheck -check-prefix=CHECK-NONEXISTANT-PREFIX %s
|
|
|
|
foobar
|
|
; ANOTHER-PREFIX: foobar
|
|
|
|
; We use regex to match the colon so that FileCheck won't think it is a check
|
|
; prefix.
|
|
; CHECK-NONEXISTANT-PREFIX: error: no check strings found with prefix 'PREFIX{{:}}'
|