xref: /llvm-project/clang/test/Modules/export-in-non-modules.cpp (revision 999ead9dc9080cf95445149e6dae1de087ef90b8)
1 // RUN: %clang_cc1 -std=c++20 %s -fsyntax-only -verify
2 export struct Unit { // expected-error {{export declaration can only be used within a module purview}}
3   bool operator<(const Unit &);
4 };
5