forked from OSchip/llvm-project
Add dead stores C++ test case that was previously asserting due to an
invalid source range for CXXNewExpr. llvm-svn: 106904
This commit is contained in:
parent
abb1f91325
commit
da42d523cf
|
@ -92,3 +92,11 @@ void test3_e(int &x) {
|
|||
int &y = x;
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Dead stores involving 'new'
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
static void test_new(unsigned n) {
|
||||
char **p = new char* [n]; // expected-warning{{never read}}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue