diff options
Diffstat (limited to 'test/VFS/parse-errors.c')
-rw-r--r-- | test/VFS/parse-errors.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/VFS/parse-errors.c b/test/VFS/parse-errors.c new file mode 100644 index 0000000..7194efc --- /dev/null +++ b/test/VFS/parse-errors.c @@ -0,0 +1,14 @@ +// RUN: not %clang_cc1 -ivfsoverlay %S/Inputs/invalid-yaml.yaml -fsyntax-only %s 2>&1 | FileCheck %s +// CHECK: invalid virtual filesystem overlay file + +// RUN: not %clang_cc1 -ivfsoverlay %S/Inputs/missing-key.yaml -fsyntax-only %s 2>&1 | FileCheck -check-prefix=CHECK-MISSING-TYPE %s +// CHECK-MISSING-TYPE: missing key 'type' +// CHECK-MISSING-TYPE: invalid virtual filesystem overlay file + +// RUN: not %clang_cc1 -ivfsoverlay %S/Inputs/unknown-key.yaml -fsyntax-only %s 2>&1 | FileCheck -check-prefix=CHECK-UNKNOWN-KEY %s +// CHECK-UNKNOWN-KEY: unknown key +// CHECK-UNKNOWN-KEY: invalid virtual filesystem overlay file + +// RUN: not %clang_cc1 -ivfsoverlay %S/Inputs/unknown-value.yaml -fsyntax-only %s 2>&1 | FileCheck -check-prefix=CHECK-UNKNOWN-VALUE %s +// CHECK-UNKNOWN-VALUE: expected boolean value +// CHECK-UNKNOWN-VALUE: invalid virtual filesystem overlay file |