Introduce ObjCMessageExpr::getReceiverRange() to get the source range of the receiver.
[clang.git] / test / Analysis / conditional-op-missing-lhs.c
blob86882a5ac4b60b018236d36c7e21aac5614217b0
1 // RUN: %clang_cc1 -analyze -analyzer-experimental-internal-checks -analyzer-check-dead-stores -warn-uninit-values -verify %s
3 void f1()
5 int i;
7 int j = i ? : 1; // expected-warning{{use of uninitialized variable}} //expected-warning{{Value stored to 'j' during its initialization is never read}}
10 void *f2(int *i)
12 return i ? : 0;
15 void *f3(int *i)
17 int a;
19 return &a ? : i;
22 void f4()
24 char c[1 ? : 2];