aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/sizeof1.C
blob: 6b547ae912efa562015e9642b9b4d532da5206cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Build don't link:
// Origin: Jason Merrill <jason@cygnus.com>

struct X {
  int f ();
  int f (int);
};

void f(int i)
{
  i = sizeof(X::f); // ERROR - cannot take sizeof a member function
}