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