diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/debug3.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/debug3.C | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/debug3.C b/gcc/testsuite/g++.old-deja/g++.other/debug3.C new file mode 100644 index 000000000..1b5507b16 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/debug3.C @@ -0,0 +1,22 @@ +// { dg-do assemble } +// { dg-options "-O2" } +// Origin: Mark Mitchell <mark@codesourcery.com> + +struct S +{ + ~S(); +}; + +inline void f() +{ + static S s; +} + +typedef void (*fn_t)(); + +fn_t g() +{ + return &f; +} + + |