OSDN Git Service

cp/ChangeLog
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.other / sizeof1.C
1 // { dg-do assemble  }
2 // Origin: Jason Merrill <jason@cygnus.com>
3
4 struct X {
5   int f ();
6   int f (int);
7 };
8
9 void f(int i)
10 {
11   i = sizeof(X::f); // { dg-error "" } cannot take sizeof a member function
12 }