15 lines · plain
1RUN: printf "%%s\n" "\"" | FileCheck %s --check-prefix=CHECK12RUN: printf "%%s\n" '"' | FileCheck %s --check-prefix=CHECK13RUN: printf "%%s\n" 'a[b\c' | FileCheck %s --check-prefix=CHECK24RUN: printf "%%s\n" "a[b\\c" | FileCheck %s --check-prefix=CHECK25RUN: printf "%%s\n" 'a\b\\c\\\\d' | FileCheck %s --check-prefix=CHECK36RUN: printf "%%s\n" "a\\b\\\\c\\\\\\\\d" | FileCheck %s --check-prefix=CHECK37CHECK1: {{^"$}}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=CHECK413RUNX: printf "%%s\n" "a[b\\c\\\\d" | FileCheck %s --check-prefix=CHECK414CHECK4: {{^a\[b\\c\\\\d$}}15