gcc/testsuite/g++.dg/debug/dwarf2/pr85302.C
raw| 1 | // PR debug/85302 |
| 2 | // { dg-do compile } |
| 3 | // { dg-skip-if "split DWARF unsupported" { *-*-darwin* } } |
| 4 | // { dg-options "-std=c++11 -gsplit-dwarf -O1" } |
| 5 | // { dg-additional-options "-fPIE" { target pie } } |
| 6 | |
| 7 | struct A { const char *b; A (const char *c) : b(c) {} }; |
| 8 | struct B { void foo (A); }; |
| 9 | B e; |
| 10 | |
| 11 | void |
| 12 | bar () |
| 13 | { |
| 14 | e.foo (""); |
| 15 | } |