summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/arg6.C
blob: c47c4467c8d56c12090e7118fa6a12565eedca74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do assemble  }
// GROUPS passed arg-matching
// arg-matching file
// Message-Id: <9305032310.AA03900@malachite.bbn.com>
// From: Dan Franklin <dan@diamond.bbn.com>
// Subject: overloaded function bug
// Date: Mon, 3 May 93 19:10:10 EDT


    typedef int (*fnp)(int, void*);
    void dispatch_insert(int, int, fnp, void* = 0);
    void dispatch_insert(int, int, long*, char*);
    typedef void (*InsertFunP)(int, int, fnp, void*);
    extern void f(InsertFunP);
    void g() { f(dispatch_insert); }