gcc/testsuite/g++.dg/debug/dwarf2/pr91887.C
raw| 1 | // { dg-do compile } |
| 2 | // { dg-require-effective-target c++11 } |
| 3 | // { dg-options "-g -fdebug-types-section" } |
| 4 | class A { |
| 5 | public: |
| 6 | A(); |
| 7 | template <typename U> A(U); |
| 8 | }; |
| 9 | template <class> struct B { typedef A type; }; |
| 10 | template <class R, typename... Args> |
| 11 | int Bind(R(Args...), typename B<Args>::type...) { return 0; } |
| 12 | void KeepBufferRefs(A, A) { A a, b(Bind(KeepBufferRefs, a, b)); } |