// { dg-additional-options "-fmodules -Wno-global-module" } // { dg-module-cmi M } module; template struct A { void f() const { } } __attribute__ ((deprecated ("y tho"))); export module M; export template A a; // { dg-warning "deprecated" }