1RUN: printf "%%s\n" "\"" | FileCheck %s --check-prefix=CHECK1 2RUN: printf "%%s\n" '"' | FileCheck %s --check-prefix=CHECK1 3RUN: printf "%%s\n" 'a[b\c' | FileCheck %s --check-prefix=CHECK2 4RUN: printf "%%s\n" "a[b\\c" | FileCheck %s --check-prefix=CHECK2 5RUN: printf "%%s\n" 'a\b\\c\\\\d' | FileCheck %s --check-prefix=CHECK3 6RUN: printf "%%s\n" "a\\b\\\\c\\\\\\\\d" | FileCheck %s --check-prefix=CHECK3 7CHECK1: {{^"$}} 8CHECK2: {{^a\[b\\c$}} 9CHECK3: {{^a\\b\\\\c\\\\\\\\d$}} 10 11On Windows, with MSYS based tools, the following commands fail though: 12RUNX: printf "%%s\n" 'a[b\c\\d' | FileCheck %s --check-prefix=CHECK4 13RUNX: printf "%%s\n" "a[b\\c\\\\d" | FileCheck %s --check-prefix=CHECK4 14CHECK4: {{^a\[b\\c\\\\d$}} 15