Debian Codegraph @

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

raw
1 // { dg-do assemble }
2
3 // Copyright (C) 2001 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 28 Feb 2001 <[email protected]>
5
6 // DR 148. Now allows pointer to members in POD struct.
7
8 struct X
9 {
10 int X::*m;
11 int (X::*f) ();
12 };
13
14 void Foo (int, ...);
15
16 void Baz ()
17 {
18 X x;
19
20 Foo (1, x);
21 }