Debian Codegraph @

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

raw
1 // PR c++/115757
2 // { dg-additional-options "-fmodules-ts -Wunused" }
3 // { dg-module-cmi test }
4
5 export module test;
6
7 export template <typename T>
8 void foo(T n [[maybe_unused]]) {
9 int x [[maybe_unused]];
10 }