bolt/deps/llvm-18.1.8/clang/test/Modules/export-in-non-modules.cpp

5 lines
193 B
C++
Raw Normal View History

2025-02-14 19:21:04 +01:00
// RUN: %clang_cc1 -std=c++20 %s -fsyntax-only -verify
export struct Unit { // expected-error {{export declaration can only be used within a module purview}}
bool operator<(const Unit &);
};