summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/arm16.C
blob: f4b546e57bd6d4c1ade69341e728f06e8169783a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do assemble  }
// { dg-options "-ansi -Wall -pedantic" }
// GROUPS passed ARM-compliance
// arm file
// From: Olaf.Weber@cwi.nl
// Date:     Fri, 2 Dec 1994 09:14:25 +0100
// Subject:  Omitting & when obtaining a pointer to member function.
// Message-ID: <9412020814.AA00604=olaf@havik.cwi.nl>

struct C {
        void foo();
};

void (C::*pfm)() = C::foo;// { dg-error "" } .*