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
tree: Don't reuse types if TYPE_USER_ALIGN differ [PR94775]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wrestrict-1.C
blob
441ff3482bcc7d2ac14fbd71f89b5dbe10309567
1
// PR c++/79588
2
// { dg-do compile }
3
// { dg-options "-Wrestrict" }
4
5
void foo (char *__restrict, char *__restrict = __null);
6
7
void
8
bar (char *p)
9
{
10
foo (p, p); // { dg-warning "to 'restrict'-qualified parameter aliases with" }
11
foo (p);
12
}