llvm-for-llvmta/tools/clang/test/CXX/modules-ts/dcl.dcl/dcl.module/p2.cpp

7 lines
309 B
C++
Raw Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -fmodules-ts -verify %s
// A named module shall contain exactly one module interface unit.
module M; // expected-error {{definition of module 'M' is not available; use -fmodule-file= to specify path to precompiled module interface}}
// FIXME: How do we ensure there is not more than one?