3 // RUN: split-file %s %t
5 // RUN: %clang_cc1 -std=c++20 %t/A.cppm -emit-module-interface -o %t/A.pcm
6 // RUN: %clang_cc1 -std=c++20 -fprebuilt-module-path=%t %t/B.cppm -fsyntax-only -verify
16 Y y
; // OK, definition of X is reachable
17 X x
; // expected-error {{declaration of 'X' must be imported from module 'A' before it is required}}
18 // expected-note@* {{declaration here is not visible}}