gcc/testsuite/g++.dg/debug/dwarf2/pr85550.C
raw| 1 | // PR debug/85550 |
| 2 | // { dg-do link } |
| 3 | // { dg-options "-O2 -g -fdebug-types-section" } |
| 4 | // { dg-skip-if "AIX DWARF5" { powerpc-ibm-aix* } } |
| 5 | // { dg-skip-if "No debug linker support" { *-*-darwin* } } |
| 6 | |
| 7 | struct A { |
| 8 | int bar () const { return 0; } |
| 9 | }; |
| 10 | template <int (A::*foo)() const> |
| 11 | struct B { |
| 12 | }; |
| 13 | |
| 14 | B<&A::bar> b; |
| 15 | |
| 16 | int |
| 17 | main () |
| 18 | { |
| 19 | } |