OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2011-10-18 Janus Weil <janus@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
uninit-pred-2_a.c
1
/* { dg-do compile } */
2
/* { dg-options "-Wuninitialized -O2" } */
3
4
int g;
5
void bar (void);
6
void blah (int);
7
8
int foo (int n, int m, int r)
9
{
10
int flag = 0;
11
int v;
12
13
if (n)
14
{
15
v = r;
16
flag = 1;
17
}
18
19
if (m)
20
g++;
21
else
22
bar();
23
24
if (flag)
25
blah(v); /* { dg-bogus "uninitialized" "bogus uninitialized var warning" } */
26
27
return 0;
28
}