builtin-declaration-mismatch-7: fix LLP64 targets
authorJonathan Yong <10walls@gmail.com>
Sat, 11 Feb 2023 08:30:55 +0000 (08:30 +0000)
committerJonathan Yong <10walls@gmail.com>
Mon, 13 Feb 2023 11:48:26 +0000 (11:48 +0000)
gcc/testsuite/ChangeLog:

* gcc.dg/Wbuiltin-declaration-mismatch-7.c: Use (long )*
regex pattern to allow long long instead of just long.

Signed-off-by: Jonathan Yong <10walls@gmail.com>
gcc/testsuite/gcc.dg/Wbuiltin-declaration-mismatch-7.c

index 7f6644e..ba2fec9 100644 (file)
@@ -23,4 +23,4 @@ int fscanf (struct StdioFile*, const char*, size_t, ...);   /* { dg-warning "con
 
 int vfscanf (struct StdioFile*, const char*, ...);   /* { dg-warning "conflicting types for built-in function .vfscanf.; expected .int\\\(\[a-z_\]+ \\\*, const char \\\*, \[^\n\r,\\\)\]+\\\)." } */
 
-size_t fwrite (const void*, size_t, size_t, struct StdioFile);    /* { dg-warning "conflicting types for built-in function .fwrite.; expected .\(long \)?unsigned int\\\(const void \\\*, \(long \)?unsigned int, *\(long \)?unsigned int, *\[a-z_\]+ \\\*\\\)." } */
+size_t fwrite (const void*, size_t, size_t, struct StdioFile);    /* { dg-warning "conflicting types for built-in function .fwrite.; expected .\(long \)*unsigned int\\\(const void \\\*, \(long \)*unsigned int, *\(long \)*unsigned int, *\[a-z_\]+ \\\*\\\)." } */