| Index: test/cctest/test-list.cc
|
| diff --git a/test/cctest/test-list.cc b/test/cctest/test-list.cc
|
| index e20ee8a3607b3b28a9cbd8ef41f0726a0e706772..7520b05fcb59d5ebcb5d2c4b12fa3f7c0eed811c 100644
|
| --- a/test/cctest/test-list.cc
|
| +++ b/test/cctest/test-list.cc
|
| @@ -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 @@ TEST(Clear) {
|
| list.Clear();
|
| CHECK_EQ(0, list.length());
|
| }
|
| +
|
| +
|
| +TEST(DeleteEmpty) {
|
| + {
|
| + List<int>* list = new List<int>(0);
|
| + delete list;
|
| + }
|
| + {
|
| + List<int> list(0);
|
| + }
|
| +}
|
|
|