forked from OSchip/llvm-project
parent
ab7872c06c
commit
c6a8352820
|
@ -2,8 +2,8 @@
|
|||
|
||||
void x() {
|
||||
int k, y;
|
||||
int abc=1;
|
||||
long idx=abc+3*5; // expected-warning {{value stored to variable is never used}}
|
||||
int abc=1;
|
||||
long idx=abc+3*5; // expected-warning {{value stored to variable is never used}}
|
||||
}
|
||||
|
||||
void a(void *b) {
|
||||
|
@ -13,9 +13,9 @@ void a(void *b) {
|
|||
}
|
||||
|
||||
void z() {
|
||||
int r;
|
||||
if ((r = f()) != 0) { // no-warning
|
||||
int y = r; // no-warning
|
||||
printf("the error is: %d\n", y);
|
||||
}
|
||||
int r;
|
||||
if ((r = f()) != 0) { // no-warning
|
||||
int y = r; // no-warning
|
||||
printf("the error is: %d\n", y);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue