* ubsan.c (ubsan_expand_null_ifn): Use _v1 suffixed type mismatch
[official-gcc.git] / gcc / testsuite / c-c++-common / pr35503-2.c
blobbfcd9448e03e7e59bb1162e272e56d98400db359
1 /* { dg-do compile } */
2 /* { dg-options "-fdiagnostics-show-caret -Wrestrict" } */
4 void f(int *__restrict x, int *y, int *__restrict z, int *w);
6 void foo(int alpha, int beta)
8 f (&alpha, &beta, &alpha, &alpha); /* { dg-warning "passing argument 1 to restrict-qualified parameter aliases with arguments 3, 4" } */
10 /* { dg-begin-multiline-output "" }
11 f (&alpha, &beta, &alpha, &alpha);
12 ^~~~~~ ~~~~~~ ~~~~~~
13 { dg-end-multiline-output "" } */