repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR middle-end/77674
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
pr35503-3.c
blob
8cbacabba62466e63d47bac4b7d45f1c23c586c1
1
/* { dg-do compile } */
2
/* { dg-options "-Wrestrict" } */
3
4
void
f
(
int
*
x
,
int
*
__restrict y
);
5
6
void
foo
(
int
a
)
7
{
8
f
(&
a
, &
a
);
/* { dg-warning "passing argument 2 to restrict-qualified parameter aliases with argument 1" } */
9
}