Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.other/optimize4.C

raw
1 // { dg-do assemble }
2 //
3 // Copyright (C) 2001 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 24 Jul 2001 <[email protected]>
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
17 void set_write_blocking ()
18 {
19 if (Writeable::blocking_mode);
20 }
21 };
22
23 void Pipe::ewrite()
24 {
25 set_write_blocking();
26 }
27
28 void ewrite(Pipe &p)
29 {
30 p.set_write_blocking();
31 }