aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc-test/src/baz.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/gcc-test/src/baz.cpp')
-rw-r--r--gcc/gcc-test/src/baz.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/gcc-test/src/baz.cpp b/gcc/gcc-test/src/baz.cpp
new file mode 100644
index 0000000..2d4b959
--- /dev/null
+++ b/gcc/gcc-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;
+}