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
testsuite: Skip analyzer tests on AIX.
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
Waddress-7.c
blob
179948553c5fde4ed7c98a373d5aa37b4d788cd1
1
/* PR c/106947 */
2
/* { dg-do compile } */
3
/* { dg-options "-Waddress" } */
4
5
#ifndef __cplusplus
6
# define bool _Bool
7
#endif
8
9
#pragma GCC diagnostic ignored
"-Waddress"
10
int
s
;
/* { dg-bogus "declared" } */
11
bool
e
= &
s
;
12
int
13
main
()
14
{
15
int
error
=
0
;
16
{
17
bool
e1
= &
s
;
18
if
(!
e1
)
19
error
=
1
;
20
}
21
return
error
;
22
}