summaryrefslogtreecommitdiff
path: root/clang/test/CXX/temp/temp.decls/temp.class/temp.mem.func/pr5056.cpp
blob: 70c9c70a41c01eed117268c30057148a827bd1d2 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// RUN: %clang_cc1 -fsyntax-only -verify %s

extern "C" void * malloc(int);

template <typename T> struct A {
  void *malloc(int);
};

template <typename T>
inline void *A<T>::malloc(int)
{
  return 0;
}

void f() {
  malloc(10);
}