8sa1-gcc/gcc/testsuite/g++.old-deja/g++.law/arg10.C
Jeff Law 921e5a0eb4 Initial revision
From-SVN: r14840
1997-08-19 01:34:40 -06:00

21 lines
421 B
C

// Build don't link:
// 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);
}