summaryrefslogtreecommitdiff
path: root/tests/testsrc/good
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testsrc/good')
-rw-r--r--tests/testsrc/good/brackets2.cpp2
-rw-r--r--tests/testsrc/good/constructor1.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/testsrc/good/brackets2.cpp b/tests/testsrc/good/brackets2.cpp
index 2199d6f..fe9ed3c 100644
--- a/tests/testsrc/good/brackets2.cpp
+++ b/tests/testsrc/good/brackets2.cpp
@@ -78,4 +78,6 @@ void func6()
// } else {
// }
// }
+ type *var = mnew type();
+ type2 *var = new type2(123);
}
diff --git a/tests/testsrc/good/constructor1.cpp b/tests/testsrc/good/constructor1.cpp
index d300f06..99f12f7 100644
--- a/tests/testsrc/good/constructor1.cpp
+++ b/tests/testsrc/good/constructor1.cpp
@@ -38,5 +38,7 @@ struct Test2 final
data1(),
data2()
{
+ type *var = mnew type();
+ type2 *var = new type2(123);
}
}