summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/parsing1.C
blob: 3930ae80911b465b52132e9cae14ccf0840d9905 (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  }
// GROUPS passed parsing
// parsing folder
// From: hendrik%vedge.UUCP@iro.umontreal.ca
// Date:     Wed, 23 Sep 92 17:10:28 -0400
// Subject:  parenthesized method
// Message-ID: <9209232110.AA02533@.>


class goo{
public:
      void noo_bloo();
};

void choo(goo* too)
{     (too->noo_bloo)();
}

void choo_too(goo* too)
{     too->noo_bloo();
}