[Preprocessor] Fix backslash tests on Windows after D49466

See http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast/builds/29442/steps/test-check-all/logs/stdio
This commit is contained in:
Fangrui Song 2019-11-26 17:27:16 -08:00
parent 75fd939bb9
commit 7ddc6287a0
1 changed files with 6 additions and 6 deletions

View File

@ -6,14 +6,14 @@
filename: __FILE__
#include "file_test.h"
// CHECK: filename: "/UNLIKELY_PATH/empty{{[/\\]}}file_test.c"
// CHECK: filename: "/UNLIKELY_PATH/empty{{[/\\]}}file_test.h"
// CHECK: basefile: "/UNLIKELY_PATH/empty{{[/\\]}}file_test.c"
// CHECK: filename: "/UNLIKELY_PATH/empty{{/|\\\\}}file_test.c"
// CHECK: filename: "/UNLIKELY_PATH/empty{{/|\\\\}}file_test.h"
// CHECK: basefile: "/UNLIKELY_PATH/empty{{/|\\\\}}file_test.c"
// CHECK-NOT: filename:
// CHECK-EVIL: filename: "/UNLIKELY_PATH=empty{{[/\\]}}file_test.c"
// CHECK-EVIL: filename: "/UNLIKELY_PATH=empty{{[/\\]}}file_test.h"
// CHECK-EVIL: basefile: "/UNLIKELY_PATH=empty{{[/\\]}}file_test.c"
// CHECK-EVIL: filename: "/UNLIKELY_PATH=empty{{/|\\\\}}file_test.c"
// CHECK-EVIL: filename: "/UNLIKELY_PATH=empty{{/|\\\\}}file_test.h"
// CHECK-EVIL: basefile: "/UNLIKELY_PATH=empty{{/|\\\\}}file_test.c"
// CHECK-EVIL-NOT: filename:
// CHECK-REMOVE: filename: "file_test.c"