realloc-1.c: accept long long in warning for llp64
llp64 targets like mingw-w64 will print: warning: ignoring return value of ‘void* __builtin_realloc(void*, long long unsigned int)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] Change the regex pattern to accept it. Signed-off-by: Jonathan Yong <10walls@gmail.com> gcc/testsuite/ChangeLog: * c-c++-common/analyzer/realloc-1.c: Make diagnostic accept long long for __builtin_realloc warning.
This commit is contained in:
parent
0c210fbbd7
commit
f4cdbd619d
1 changed files with 1 additions and 1 deletions
|
@ -92,5 +92,5 @@ void test_9 (void *p)
|
|||
void test_10 (char *s, int n)
|
||||
{
|
||||
__builtin_realloc(s, n); /* { dg-warning "ignoring return value of '__builtin_realloc' declared with attribute 'warn_unused_result'" "" { target c } } */
|
||||
/* { dg-warning "ignoring return value of 'void\\* __builtin_realloc\\(void\\*, (long )?unsigned int\\)' declared with attribute 'warn_unused_result'" "" { target c++ } .-1 } */
|
||||
/* { dg-warning "ignoring return value of 'void\\* __builtin_realloc\\(void\\*, (long )*unsigned int\\)' declared with attribute 'warn_unused_result'" "" { target c++ } .-1 } */
|
||||
} /* { dg-warning "leak" } */
|
||||
|
|
Loading…
Add table
Reference in a new issue