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
/
Winit-self-2.C
blob
a619d5a0b422cf4f91535bc74006a5d8a24d37a0
1
// PR c++/63203
2
// { dg-options "-Winit-self" }
3
4
struct string { };
5
6
int main()
7
{
8
for (int ii = 0; ii < 1; ++ii)
9
{
10
const string& str = str; // { dg-warning "is initialized with itself" }
11
}
12
}