1*d7969012SZezhengLi // This tests that the compiler wouldn't crash if the module path misses 2*d7969012SZezhengLi 3*d7969012SZezhengLi // RUN: rm -rf %t 4*d7969012SZezhengLi // RUN: mkdir -p %t/subdir 5*d7969012SZezhengLi // RUN: echo "export module C;" >> %t/subdir/C.cppm 6*d7969012SZezhengLi // RUN: echo -e "export module B;\nimport C;" >> %t/B.cppm 7*d7969012SZezhengLi // RUN: %clang_cc1 -std=c++20 -emit-module-interface %t/subdir/C.cppm -o %t/subdir/C.pcm 8*d7969012SZezhengLi // RUN: %clang_cc1 -std=c++20 -emit-module-interface -fprebuilt-module-path=%t/subdir %t/B.cppm -o %t/B.pcm 9*d7969012SZezhengLi // RUN: %clang_cc1 -std=c++20 -fprebuilt-module-path=%t %s -fsyntax-only -verify 10*d7969012SZezhengLi 11*d7969012SZezhengLi import B; 12*d7969012SZezhengLi import C; // expected-error {{module 'C' is needed but has not been provided, and implicit use of module files is disabled}} 13