summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/arg10.C
blob: f8360be2c691fa103499f81d27d7eaaa101c0832 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// { dg-do assemble  }
// GROUPS passed arg-matching
// arg-matching file
// From: Terry Lee <terry@uivlsisd.csl.uiuc.edu>
// Date:     Sat, 14 May 1994 02:46:15 -0500
// Subject:  g++ 2.5.8 template<const void*> bug
// Message-ID: <199405140746.AA03993@uivlsisd.csl.uiuc.edu>

template<class T>
class A {
public:
    void func(const T& val) { }
};

int main()
{
    A<const void*> a;
    int* ptr = 0;
    a.func(ptr);
}