aboutsummaryrefslogtreecommitdiff
path: root/raii/allocate.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--raii/allocate.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/raii/allocate.cpp b/raii/allocate.cpp
new file mode 100644
index 0000000..519f09f
--- /dev/null
+++ b/raii/allocate.cpp
@@ -0,0 +1,8 @@
1bool f(int big_number) {
2 int *a = new int[big_number];
3 return true;
4}
5
6int main() {
7 return 0;
8}

Generated with cgit - Back to sebastiano.tronto.net