mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-24 22:08:57 -04:00

This is a fix to PR12778: in erroneous code an allocation function can be declared with no arguments, quering the first argument in this case causes assertion violation. llvm-svn: 190751
8 lines
214 B
C++
8 lines
214 B
C++
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
|
|
|
void operator delete() throw(void*); // expected-error{{'operator delete' must have at least one parameter}}
|
|
void* allocate(int __n) {
|
|
return ::operator new(__n);
|
|
}
|
|
|