summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/no-implicit-builtin-decls.cpp
blob: bd11f92f7e6295692324efc49dc6a50d5a812601 (plain)
1
2
3
4
5
6
7
// RUN: clang-cc -fsyntax-only -verify %s

void f() {
  void *p = malloc(sizeof(int) * 10); // expected-error{{no matching function for call to 'malloc'}}
}

int malloc(double);
OpenPOWER on IntegriCloud