diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/inline13.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/inline13.C | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/inline13.C b/gcc/testsuite/g++.old-deja/g++.other/inline13.C new file mode 100644 index 000000000..bf8e52e01 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/inline13.C @@ -0,0 +1,18 @@ +// { dg-do assemble } +// Origin: Alexandre Oliva <aoliva@cygnus.com> + +struct foo { + inline void bar(); + foo(); +}; + +inline void foo::bar() { + switch (0) { + case 0: + break; + } +} + +foo::foo() { + bar(); +} |