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
c-family: Honor -Wno-init-self for cv-qual vars [PR102633]
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
Winit-self1.c
blob
740b83b5e9f3d1d5b5c6663eed6c198e9dd80c1c
1
/* PR middle-end/102633 */
2
/* { dg-do compile } */
3
/* { dg-options "-Wuninitialized -Wno-init-self" } */
4
5
int
6
fn1
(
void
)
7
{
8
int
i
=
i
;
9
return
i
;
10
}
11
12
int
13
fn2
()
14
{
15
const int
j
=
j
;
16
return
j
;
17
}
18
19
int
20
fn3
()
21
{
22
volatile
int
k
=
k
;
23
return
k
;
24
}
25
26
int
27
fn4
()
28
{
29
const
volatile
int
l
=
l
;
30
return
l
;
31
}