Debian Codegraph @

gcc/testsuite/g++.dg/modules/virt-6_a.C

raw
1 // PR c++/115007
2 // { dg-additional-options "-fmodules-ts -Wno-global-module" }
3 // { dg-module-cmi M:a }
4
5 module;
6 struct S {
7 virtual ~S() = default;
8 virtual void f() = 0;
9 };
10 module M:a;
11 extern S* p;
12 template <typename T> void format(T) { p->~S(); }
13 template void format(int);