summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/pod1.C
blob: b70892683270d1acb6d52cbb8dd437cfd4e946eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// { dg-do assemble  }

// Copyright (C) 2001 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 28 Feb 2001 <nathan@codesourcery.com>

// DR 148. Now allows pointer to members in POD struct.

struct X
{
  int X::*m;
  int (X::*f) ();
};

void Foo (int, ...);

void Baz ()
{
  X x;
  
  Foo (1, x);
}