1 // { dg-do assemble  }
2 //
3 // Copyright (C) 2001 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 24 Jul 2001 <nathan@codesourcery.com>
5 
6 // Bug 3543. We forgot to resolve an OFFSET_REF
7 
8 
9 struct Writeable {
10   bool blocking_mode;
11 };
12 
13 
14 struct Pipe : Writeable {
15   void ewrite();
16 
set_write_blockingPipe17   void set_write_blocking ()
18   {
19     if (Writeable::blocking_mode);
20   }
21 };
22 
ewrite()23 void Pipe::ewrite()
24 {
25   set_write_blocking();
26 }
27 
ewrite(Pipe & p)28 void ewrite(Pipe &p)
29 {
30   p.set_write_blocking();
31 }
32