llvm-project/clang/test/Modules/export-in-non-modules.cpp

5 lines
229 B
C++

// RUN: %clang_cc1 -std=c++20 %s -fsyntax-only -verify
export struct Unit { // expected-error {{export declaration can only be used within a module interface unit after the module declaration}}
bool operator<(const Unit &);
};