1// RUN: rm -rf %t 2// RUN: split-file %s %t 3// RUN: cd %t 4// 5// RUN: %clang_cc1 -std=c++20 %t/m.a.cppm -emit-module-interface -o %t/a.pcm 6// RUN: %clang_cc1 -std=c++20 %t/m.b.cppm -fmodule-file=m:a=%t/a.pcm -fsyntax-only -verify 7 8//--- m.a.cppm 9export module m:a; 10int a; 11 12//--- m.b.cppm 13// expected-no-diagnostics 14module m:b; 15import :a; 16extern "C++" int get_a() { return a; } 17