Debian Codegraph @

gcc/testsuite/g++.dg/modules/clone-4_b.C

raw
1 // PR c++/120125
2 // { dg-additional-options "-fmodules -fdeclone-ctor-dtor" }
3
4 import M;
5
6 int main() {
7 __shared_ptr<int> s1;
8 __shared_ptr<double> s2;
9 }
10
11 // { dg-final { scan-assembler-not {_ZNW1M12__shared_ptrIiEC[1-4]Ev:} } }
12 // { dg-final { scan-assembler {_ZNW1M12__shared_ptrIdEC2Ev:} } }