Chuanqi Xu d54888a3eb [Modules] Refactor modules-ts tests to use standard c++ modules
We're going to remove the support for modules-ts. But there are a lot of
tests which uses -fmodules-ts. We shouldn't remove them simply. This
patch refactor these tests to use standard c++ modules.
2023-02-16 14:05:16 +08:00

7 lines
218 B
C++

// RUN: %clang_cc1 -std=c++20 -verify %s
// A named module shall contain exactly one module interface unit.
module M; // expected-error {{module 'M' not found}}
// FIXME: How do we ensure there is not more than one?