diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/debug2.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/debug2.C | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/debug2.C b/gcc/testsuite/g++.old-deja/g++.other/debug2.C new file mode 100644 index 000000000..f5f0a4f2e --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/debug2.C @@ -0,0 +1,31 @@ +// { dg-do assemble } +// { dg-options "-funroll-loops -O2 -g" } + +inline void f() +{ + typedef int T; +} + +inline void g() +{ + typedef double U; +} + +int n; + +struct B +{ + ~B() { + for (int i = 0; i < n; ++i) + g(); + } +}; + +struct D : public B { + ~D() { + for (int j = 0; j < n; ++j) + f(); + } +}; + +D d; |