| Index: test/cctest/test-list.cc
|
| ===================================================================
|
| --- test/cctest/test-list.cc (revision 8778)
|
| +++ test/cctest/test-list.cc (working copy)
|
| @@ -1,4 +1,4 @@
|
| -// Copyright 2009 the V8 project authors. All rights reserved.
|
| +// Copyright 2011 the V8 project authors. All rights reserved.
|
| // Redistribution and use in source and binary forms, with or without
|
| // modification, are permitted provided that the following conditions are
|
| // met:
|
| @@ -138,3 +138,14 @@
|
| list.Clear();
|
| CHECK_EQ(0, list.length());
|
| }
|
| +
|
| +
|
| +TEST(DeleteEmpty) {
|
| + {
|
| + List<int>* list = new List<int>(0);
|
| + delete list;
|
| + }
|
| + {
|
| + List<int> list(0);
|
| + }
|
| +}
|
|
|