diff options
Diffstat (limited to 'test/Analysis/dead-stores.cpp')
-rw-r--r-- | test/Analysis/dead-stores.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Analysis/dead-stores.cpp b/test/Analysis/dead-stores.cpp index 22d446e..b21ffad 100644 --- a/test/Analysis/dead-stores.cpp +++ b/test/Analysis/dead-stores.cpp @@ -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}} +} + |