Skip to content

Commit 3abc5db

Browse files
author
Thomas Kiley
committed
Add test for the new operator
Currently the CPP library is not built in cmake builds
1 parent 7e87db1 commit 3abc5db

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#include <cassert>
2+
3+
int main()
4+
{
5+
int *some_data = new int(10);
6+
assert(some_data);
7+
assert(*some_data == 10);
8+
return 0;
9+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
CORE
2+
main.cpp
3+
--pointer-check
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^VERIFICATION SUCCESSFUL$
7+
--
8+
^warning: ignoring
9+
--
10+
Ensure that the new operator is implemented.

0 commit comments

Comments
 (0)