2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / optimize4.C
blobf1345e671bbdab97f8b98f48854390cd024bd363
1 // { dg-do assemble  }
2 // 
3 // Copyright (C) 2001 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 24 Jul 2001 <nathan@codesourcery.com>
6 // Bug 3543. We forgot to resolve an OFFSET_REF
9 struct Writeable {
10   bool blocking_mode;
14 struct Pipe : Writeable {
15   void ewrite();
17   void set_write_blocking ()
18   {
19     if (Writeable::blocking_mode);
20   }
23 void Pipe::ewrite()
25   set_write_blocking();
28 void ewrite(Pipe &p)
30   p.set_write_blocking();