1 // RUN: not %clang_cc1 -ivfsoverlay %S/Inputs/invalid-yaml.yaml -fsyntax-only %s 2>&1 | FileCheck %s
2 // CHECK: invalid virtual filesystem overlay file
4 // RUN: not %clang_cc1 -ivfsoverlay %S/Inputs/missing-key.yaml -fsyntax-only %s 2>&1 | FileCheck -check-prefix=CHECK-MISSING-TYPE %s
5 // CHECK-MISSING-TYPE: missing key 'type'
6 // CHECK-MISSING-TYPE: invalid virtual filesystem overlay file
8 // RUN: not %clang_cc1 -ivfsoverlay %S/Inputs/unknown-key.yaml -fsyntax-only %s 2>&1 | FileCheck -check-prefix=CHECK-UNKNOWN-KEY %s
9 // CHECK-UNKNOWN-KEY: unknown key
10 // CHECK-UNKNOWN-KEY: invalid virtual filesystem overlay file
12 // RUN: not %clang_cc1 -ivfsoverlay %S/Inputs/unknown-value.yaml -fsyntax-only %s 2>&1 | FileCheck -check-prefix=CHECK-UNKNOWN-VALUE %s
13 // CHECK-UNKNOWN-VALUE: expected boolean value
14 // CHECK-UNKNOWN-VALUE: invalid virtual filesystem overlay file
16 // RUN: not %clang_cc1 -ivfsoverlay %S/Inputs/unknown-redirect.yaml -fsyntax-only %s 2>&1 | FileCheck -check-prefix=CHECK-REDIRECT %s
17 // CHECK-REDIRECT: expected valid redirect kind
18 // CHECK-REDIRECT: invalid virtual filesystem overlay file
20 // RUN: not %clang_cc1 -ivfsoverlay %S/Inputs/redirect-and-fallthrough.yaml -fsyntax-only %s 2>&1 | FileCheck -check-prefix=CHECK-EXCLUSIVE-KEYS %s
21 // CHECK-EXCLUSIVE-KEYS: 'fallthrough' and 'redirecting-with' are mutually exclusive
22 // CHECK-EXCLUSIVE-KEYS: invalid virtual filesystem overlay file