diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/inline23.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/inline23.C | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/inline23.C b/gcc/testsuite/g++.old-deja/g++.other/inline23.C new file mode 100644 index 000000000..dcb443be1 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/inline23.C @@ -0,0 +1,28 @@ +// { dg-do link } + +struct B +{ + virtual ~B() {} +}; + +struct A : public B +{ + ~A(); + void foo(void); + void bar(void); +}; + +inline void A::foo(void) +{ + static int i; + i++; +} + +void A::bar() +{ + foo(); +} + +int main() +{ +} |