17 lines · plain
1// RUN: rm -rf %t2// RUN: split-file %s %t3// RUN: cd %t4//5// RUN: %clang_cc1 -std=c++20 %t/m.a.cppm -emit-module-interface -o %t/a.pcm6// RUN: %clang_cc1 -std=c++20 %t/m.b.cppm -fmodule-file=m:a=%t/a.pcm -fsyntax-only -verify7 8//--- m.a.cppm9export module m:a;10int a;11 12//--- m.b.cppm13// expected-no-diagnostics14module m:b;15import :a;16extern "C++" int get_a() { return a; }17