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