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