1d7969012SZezhengLi // This tests that the compiler wouldn't crash if the module path misses 2d7969012SZezhengLi 3d7969012SZezhengLi // RUN: rm -rf %t 4d7969012SZezhengLi // RUN: mkdir -p %t/subdir 5d7969012SZezhengLi // RUN: echo "export module C;" >> %t/subdir/C.cppm 6d7969012SZezhengLi // RUN: echo -e "export module B;\nimport C;" >> %t/B.cppm 7d7969012SZezhengLi // RUN: %clang_cc1 -std=c++20 -emit-module-interface %t/subdir/C.cppm -o %t/subdir/C.pcm 8d7969012SZezhengLi // RUN: %clang_cc1 -std=c++20 -emit-module-interface -fprebuilt-module-path=%t/subdir %t/B.cppm -o %t/B.pcm 9*dc4e85bdSChuanqi Xu // RUN: %clang_cc1 -std=c++20 -fmodule-file=B=%t/B.pcm %s -fsyntax-only -verify 10d7969012SZezhengLi 11*dc4e85bdSChuanqi Xu import B; // expected-error {{failed to find module file for module 'C'}} 12*dc4e85bdSChuanqi Xu import C; // expected-error {{module 'C' not found}} 13