summaryrefslogtreecommitdiffhomepage
path: root/examples/malloc-cast.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/malloc-cast.c')
-rw-r--r--examples/malloc-cast.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/malloc-cast.c b/examples/malloc-cast.c
new file mode 100644
index 0000000..5015147
--- /dev/null
+++ b/examples/malloc-cast.c
@@ -0,0 +1,4 @@
+void f(void)
+{
+ int *vals = malloc(sizeof(int) * 10);
+}