gcc/testsuite/g++.old-deja/g++.law/arg10.C
raw| 1 | // { dg-do assemble } |
| 2 | // GROUPS passed arg-matching |
| 3 | // arg-matching file |
| 4 | // From: Terry Lee <[email protected]> |
| 5 | // Date: Sat, 14 May 1994 02:46:15 -0500 |
| 6 | // Subject: g++ 2.5.8 template<const void*> bug |
| 7 | // Message-ID: <[email protected]> |
| 8 | |
| 9 | template<class T> |
| 10 | class A { |
| 11 | public: |
| 12 | void func(const T& val) { } |
| 13 | }; |
| 14 | |
| 15 | int main() |
| 16 | { |
| 17 | A<const void*> a; |
| 18 | int* ptr = 0; |
| 19 | a.func(ptr); |
| 20 | } |