1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
// RUN: rm -rf %t // RUN: mkdir -p %t // RUN: split-file %s %t // // RUN: %clang_cc1 -std=c++20 -fsyntax-only -verify %t/c.cppm //--- a.hpp #pragma once using a = int; //--- b.hpp #pragma once #include "a.hpp" a b; //--- c.cppm // expected-no-diagnostics module; #include "b.hpp" export module c; export using ::a;