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
9struct Writeable {
10  bool blocking_mode;
11};
12
13
14struct Pipe : Writeable {
15  void ewrite();
16
17  void set_write_blocking ()
18  {
19    if (Writeable::blocking_mode);
20  }
21};
22
23void Pipe::ewrite()
24{
25  set_write_blocking();
26}
27
28void ewrite(Pipe &p)
29{
30  p.set_write_blocking();
31}
32