8 lines · cpp
1// This tests whether the global module would be created when the program don't declare it explicitly.2// RUN: %clang_cc1 -std=c++20 %s -verify3// expected-no-diagnostics4export module x;5 6extern "C" void foo();7extern "C++" class CPP {};8