comparison gcc/testsuite/gcc.dg/pr78973-2.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
8 { dg-require-effective-target int32plus } 8 { dg-require-effective-target int32plus }
9 { dg-options "-O2 -Walloc-size-larger-than=4" } */ 9 { dg-options "-O2 -Walloc-size-larger-than=4" } */
10 10
11 void *p; 11 void *p;
12 12
13 void f (int n) 13 static void f (int n)
14 { 14 {
15 if (n <= 4) 15 if (n <= 4)
16 p = __builtin_malloc (n); 16 p = __builtin_malloc (n);
17 /* { dg-warning "argument 1 range \\\[\[0-9\]+, \[0-9\]+\\\] exceeds maximum object size 4" "ilp32" { xfail { ! lp64 } } .-1 } */ 17 /* { dg-warning "argument 1 range \\\[\[0-9\]+, \[0-9\]+\\\] exceeds maximum object size 4" "ilp32" { target *-*-* } .-1 } */
18 } 18 }
19 19
20 void g (unsigned n) 20 void g (unsigned n)
21 { 21 {
22 if (n < 5) 22 if (n < 5)