mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-18 09:16:38 +00:00

used as expressions). In dependent contexts, try to recover by doing a lookup in previously-dependent base classes. We get better diagnostics out, but unfortunately the recovery fails: we need to turn it into a method call expression, not a bare call expression. Thus this is still a WIP. llvm-svn: 91525
8 lines
176 B
C++
8 lines
176 B
C++
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
|
|
|
void f() {
|
|
void *p = malloc(sizeof(int) * 10); // expected-error{{use of undeclared identifier 'malloc'}}
|
|
}
|
|
|
|
int malloc(double);
|