bolt/deps/llvm-18.1.8/clang/test/Modules/cxx20-export-import.cpp
2025-02-14 19:21:04 +01:00

14 lines
385 B
C++

// RUN: rm -rf %t
// RUN: mkdir -p %t
// RUN: split-file %s %t
//
// RUN: %clang_cc1 -std=c++20 %t/dummy.cppm -emit-module-interface -o %t/dummy.pcm
// RUN: %clang_cc1 -std=c++20 -fprebuilt-module-path=%t -verify %t/test.cpp
//--- dummy.cppm
export module dummy;
//--- test.cpp
export import dummy; // expected-error {{export declaration can only be used within a module purview}}