Debian Codegraph @

gcc/testsuite/g++.dg/debug/cleanup2.C

raw
1 // PR c++/96997
2 // { dg-additional-options "-g -fdump-tree-gimple-lineno" }
3
4 struct A { A(); ~A(); };
5 void f(const A& = A());
6 int main() { f(); }
7
8 // The destructor call for the A temporary should not have the location of the
9 // f declaration.
10 // { dg-final { scan-tree-dump-not ".C:5" "gimple" } }