Be more precise when diagnosing 'inline' on global replacement functions

llvm-svn: 193061
This commit is contained in:
David Majnemer 2013-10-21 00:22:03 +00:00
parent 90a0876ae7
commit e29296e48c
2 changed files with 2 additions and 2 deletions

View File

@ -5901,7 +5901,7 @@ def err_operator_new_delete_declared_in_namespace : Error<
def err_operator_new_delete_declared_static : Error<
"%0 cannot be declared static in global scope">;
def err_operator_new_delete_declared_inline : Error<
"%0 cannot be declared 'inline'">;
"replacement function %0 cannot be declared 'inline'">;
def err_operator_new_delete_invalid_result_type : Error<
"%0 must return type %1">;
def err_operator_new_delete_dependent_result_type : Error<

View File

@ -24,7 +24,7 @@ void* operator new(size_t, int*); // expected-note 3 {{candidate}}
void* operator new(size_t, float*); // expected-note 3 {{candidate}}
void* operator new(size_t, S); // expected-note 2 {{candidate}}
inline void operator delete(void *); // expected-error {{'operator delete' cannot be declared 'inline'}}
inline void operator delete(void *); // expected-error {{replacement function 'operator delete' cannot be declared 'inline'}}
struct foo { };