]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/g++.dg/pr78112-2.C
Get rid of dg-skip-if etc. default args
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / pr78112-2.C
CommitLineData
8a00c787 1/* { dg-do compile } */
4f4b0ab8 2/* { dg-skip-if "No dwarf debug support" { hppa*-*-hpux* } } */
8a00c787
PMR
3/* { dg-options "-g -dA -gdwarf-4 -std=gnu++11" } */
4/* { dg-options "-g -dA -std=gnu++11 -gdwarf-4" } */
5/* { dg-final { scan-assembler-times DW_AT_object_pointer 18 } } */
6
7void run (int *int_p, void(*func)(int *)) { func (int_p); }
8namespace foo {
9 struct Foo {
10 int a;
11 Foo() { run (&a, [](int *int_p) { *int_p = 0; }); }
12 };
13}
14int main (void) { foo::Foo f; }