Debian Codegraph @

gcc/testsuite/gcc.dg/torture/pr67222.c

raw
1 /* PR middle-end/67222 - ICE in gimple_call_arg with bogus posix_memalign */
2 /* { dg-do compile } */
3 /* { dg-additional-options "-fpermissive" } */
4
5 void
6 foo (void **p)
7 {
8 posix_memalign (); /* { dg-warning "implicit declaration" } */
9 posix_memalign (p);
10 posix_memalign (0);
11 posix_memalign (p, 1);
12 posix_memalign (p, "foo");
13 posix_memalign ("gnu", "gcc");
14 posix_memalign (1, p);
15 posix_memalign (1, 2);
16 posix_memalign (1, 2, 3);
17 posix_memalign (p, p, p);
18 posix_memalign (p, "qui", 3);
19 posix_memalign (p, 1, 2);
20 }
21
22 /* Prune warnings:
23 { dg-prune-output "call to built-in function declared without prototype" }
24 { dg-prune-output "too few arguments to built-in function" }
25 { dg-prune-output "incompatible pointer type" }
26 { dg-prune-output "\\\[-Wint-conversion]" } */