| 1 |
// RUN: %clang_cc1 -fsyntax-only -verify %s |
| 2 |
// expected-no-diagnostics |
| 3 |
|
| 4 |
extern "C" void * malloc(int); |
| 5 |
|
| 6 |
template <typename T> struct A { |
| 7 |
void *malloc(int); |
| 8 |
}; |
| 9 |
|
| 10 |
template <typename T> |
| 11 |
inline void *A<T>::malloc(int) |
| 12 |
{ |
| 13 |
return 0; |
| 14 |
} |
| 15 |
|
| 16 |
void f() { |
| 17 |
malloc(10); |
| 18 |
} |