diff options
Diffstat (limited to 'cc/cc-test/src/baz.cpp')
-rw-r--r-- | cc/cc-test/src/baz.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cc/cc-test/src/baz.cpp b/cc/cc-test/src/baz.cpp new file mode 100644 index 0000000..2d4b959 --- /dev/null +++ b/cc/cc-test/src/baz.cpp @@ -0,0 +1,9 @@ +#include <stdint.h> + +extern "C" int32_t +baz() { + int *a = new int(8); + int b = *a; + delete a; + return b; +} |