]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ad PR122016: Fix test case for 16-bit size targets.
authorGeorg-Johann Lay <avr@gjlay.de>
Sun, 19 Oct 2025 14:32:43 +0000 (16:32 +0200)
committerGeorg-Johann Lay <avr@gjlay.de>
Sun, 19 Oct 2025 14:48:33 +0000 (16:48 +0200)
PR testsuite/122016
PR testsuite/52641
gcc/testsuite/
* gcc.dg/torture/pr122016.c (strncmp): Use __SIZE_TYPE__ instead
of long as type of the size argument.

gcc/testsuite/gcc.dg/torture/pr122016.c

index 027a63d42562d1f11b01f5ce339a1de979d653f2..0fe793b9d60b6342bdae8478f5754370b39b5c62 100644 (file)
@@ -3,11 +3,11 @@
 
 int merge_parse_args_argc;
 char merge_parse_args_argv_0;
-int strncmp(char *, char *, long);
-void _setjmp();
+int strncmp(const char *, const char *, __SIZE_TYPE__);
+void _setjmp(void);
 typedef enum { FALSE, TRUE } boool;
-void directory_exists();
-void merge_parse_args() {
+void directory_exists(void);
+void merge_parse_args(void) {
   int i;
   boool help_found = FALSE;
   while (i < merge_parse_args_argc && !help_found) {