// RUN: rm -rf %t
// RUN: mkdir -p %t
// RUN: split-file %s %t
//
// RUN: %clang_cc1 -std=c++20 %t/X.cppm -emit-module-interface -o %t/X.pcm
// RUN: %clang_cc1 -std=c++20 -fprebuilt-module-path=%t %t/Use.cpp -fsyntax-only -verify
//
//--- foo.h
;
;
;
;
// FOO_H
//--- X.cppm
module;
export module X;
export
;
//--- Use.cpp
import X;
foo<int> f; // expected-error {{'foo' must be declared before it is used}}
// expected-note@* {{declaration here is not visible}}
int