bolt/deps/llvm-18.1.8/clang/test/Modules/missing-module-declaration.cppm

14 lines
387 B
Text
Raw Normal View History

2025-02-14 19:21:04 +01:00
// RUN: rm -rf %t
// RUN: split-file %s %t
// RUN: cd %t
//
// RUN: %clang_cc1 -std=c++20 %t/B.cppm -I%t -emit-module-interface -o %t/B.pcm
// RUN: %clang_cc1 -std=c++20 %t/A.cppm -I%t -fprebuilt-module-path=%t -emit-module-interface -verify
//--- A.cppm
import B; // expected-error{{missing 'export module' declaration in module interface unit}}
//--- B.cppm
module;
export module B;