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
Add __builtion_unreachable to vector::size(), vector::capacity()
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
analyzer
/
volatile-1.c
blob
f8440d412201db60bf4157244707cb642a4ec9fe
1
#include
"../../gcc.dg/analyzer/analyzer-decls.h"
2
3
volatile
int
g
;
4
5
void
test_global
(
void
)
6
{
7
int
v1
=
g
;
8
int
v2
=
g
;
9
__analyzer_eval
(
v1
==
v2
);
/* { dg-warning "UNKNOWN" } */
10
}
11
12
void
test_local
(
void
)
13
{
14
volatile
int
x
=
0
;
15
int
v1
=
x
;
16
int
v2
=
x
;
17
__analyzer_eval
(
v1
==
v2
);
/* { dg-warning "UNKNOWN" } */
18
}