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