Debian Codegraph @

clang/test/Modules/export-in-another-export.cppm

raw
1 // RUN: %clang_cc1 -std=c++20 %s -fsyntax-only -verify
2 export module M;
3 export { // expected-note {{export block begins here}}
4 export int foo() { return 43; } // expected-error {{export declaration appears within another export declaration}}
5 }