Skip to content

Instantly share code, notes, and snippets.

@chapuni
Created July 31, 2013 10:10
Show Gist options
  • Save chapuni/6120897 to your computer and use it in GitHub Desktop.
Save chapuni/6120897 to your computer and use it in GitHub Desktop.
Testscases for llvm/test/FileCheck/simple-var-capture.txt, about variables with backslashes
// Variable should be matched to backslashes.
posix: /path/to/posix/file
dos: c:\path\to\dos\file
dosx: d:\\path\\to\\escaped\\file
CHECK: posix: [[POSIX:.*]]/file
CHECK: dos: [[DOS:.*]]/file
CHECK: posix: [[DOSX:.*]]/file
POSIX should be matched to /path/to/posix/file(/path/to/posix)
DOS should be matched to c:\path\to\dos\file(c:\path\to\dos)
DOSX should be matched to d:\\path\\to\\escaped\\file(d:\\path\\to\\escaped)
CHECK: [[POSIX]]/file([[POSIX]])
CHECK: [[DOS]]\file([[DOS]])
CHECK: [[DOSX]]\\file([[DOSX]])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment