Debian Codegraph @

gcc/testsuite/g++.dg/modules/linkage-1_a.C

raw
1 // { dg-additional-options "-fmodules-ts -Wno-error=c++20-extensions" }
2 // { dg-module-cmi M }
3
4 export module M;
5
6 auto f() {
7 struct A {};
8 return A{};
9 }
10 decltype(f()) g(); // { dg-warning "used but not defined" "" { target c++17_down } }
11 export auto x = g();