2014-03-04 22:34:50 +00:00
|
|
|
// RUN: mkdir -p %t
|
|
|
|
// RUN: cd %t
|
2019-12-03 15:22:30 -08:00
|
|
|
// RUN: sed -e "s@INPUT_DIR@%{/S:regex_replacement}/Inputs@g" -e "s@OUT_DIR@%{/t:regex_replacement}@g" %S/Inputs/vfsoverlay.yaml > %t.yaml
|
2014-03-04 22:34:50 +00:00
|
|
|
// RUN: %clang_cc1 -Werror -I . -ivfsoverlay %t.yaml -fsyntax-only %s
|
2019-09-11 20:56:25 +00:00
|
|
|
|
2022-11-04 16:40:10 -07:00
|
|
|
// RUN: cp %S/Inputs/actual_header.h %t/actual_header.h
|
|
|
|
// RUN: sed -e "s@OVERLAY_DIR@true@g" -e "s@EXTERNAL_DIR@.@g" %S/Inputs/root-relative-overlay.yaml > %t/root-relative-overlay.yaml
|
|
|
|
// RUN: %clang_cc1 -Werror -I %t -ivfsoverlay %t/root-relative-overlay.yaml -fsyntax-only %s
|
|
|
|
|
|
|
|
// RUN: sed -e "s@OVERLAY_DIR@false@g" -e "s@EXTERNAL_DIR@%{/t:regex_replacement}@g" %S/Inputs/root-relative-overlay.yaml > %t/root-relative-overlay2.yaml
|
|
|
|
// RUN: %clang_cc1 -Werror -I %t -ivfsoverlay %t/root-relative-overlay2.yaml -fsyntax-only %s
|
|
|
|
|
2014-03-04 22:34:50 +00:00
|
|
|
#include "not_real.h"
|
|
|
|
|
2022-02-12 07:23:43 -05:00
|
|
|
void foo(void) {
|
2014-03-04 22:34:50 +00:00
|
|
|
bar();
|
|
|
|
}
|