diff options
Diffstat (limited to 'test/FileCheck/check-prefixes.txt')
-rw-r--r-- | test/FileCheck/check-prefixes.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/FileCheck/check-prefixes.txt b/test/FileCheck/check-prefixes.txt new file mode 100644 index 0000000..a8af29d --- /dev/null +++ b/test/FileCheck/check-prefixes.txt @@ -0,0 +1,9 @@ +// 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{{:}}' |