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-04-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
uninit-pred-7_b.c
1
2
/* { dg-do compile } */
3
/* { dg-options "-Wuninitialized -O2" } */
4
5
int g;
6
void bar();
7
void blah(int);
8
9
int foo (int n, int l, int m, int r)
10
{
11
int v;
12
13
if (n > 10)
14
v = r;
15
16
if (m) g++;
17
else bar();
18
19
if (( n > 10) || (l != 100))
20
blah (v); /* { dg-warning "uninitialized" "warning" } */
21
22
return 0;
23
}