diff options
Diffstat (limited to 'libitm/testsuite/libitm.c++/newdelete.C')
-rw-r--r-- | libitm/testsuite/libitm.c++/newdelete.C | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libitm/testsuite/libitm.c++/newdelete.C b/libitm/testsuite/libitm.c++/newdelete.C new file mode 100644 index 0000000..10eba4f --- /dev/null +++ b/libitm/testsuite/libitm.c++/newdelete.C @@ -0,0 +1,12 @@ +// { dg-do run } + +int main () +{ + atomic_commit { + int* data = new int; + delete data; + data = new int[10]; + delete[] data; + } + return 0; +} |