diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/inline16.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/inline16.C | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/inline16.C b/gcc/testsuite/g++.old-deja/g++.other/inline16.C new file mode 100644 index 000000000..95bfa7aac --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/inline16.C @@ -0,0 +1,24 @@ +// { dg-do assemble } +// { dg-options "-O1" } +// Origin: Jakub Jelinek <jakub@redhat.com> + +struct foo { + bool x; + inline void a (unsigned char y); + inline void b (void); + virtual ~foo (); +}; + +foo::~foo () +{ +} + +void foo::a (unsigned char y) +{ + x = ((y & 2) != 0); +} + +void foo::b (void) +{ + a(0x07); +} |