summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/new.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGenCXX/new.cpp')
-rw-r--r--clang/test/CodeGenCXX/new.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/new.cpp b/clang/test/CodeGenCXX/new.cpp
index 2cb3b00edf1..c6cee184567 100644
--- a/clang/test/CodeGenCXX/new.cpp
+++ b/clang/test/CodeGenCXX/new.cpp
@@ -55,6 +55,10 @@ void t7() {
new int();
}
+struct U {
+ ~U();
+};
+
void t8(int n) {
new int[10];
new int[n];
@@ -62,4 +66,8 @@ void t8(int n) {
// Non-POD
new T[10];
new T[n];
+
+ // Cookie required
+ new U[10];
+ new U[n];
}
OpenPOWER on IntegriCloud