aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/g++.dg/analyzer/placement-new-size.C3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/testsuite/g++.dg/analyzer/placement-new-size.C b/gcc/testsuite/g++.dg/analyzer/placement-new-size.C
index 75a5a15..f6c7bd4 100644
--- a/gcc/testsuite/g++.dg/analyzer/placement-new-size.C
+++ b/gcc/testsuite/g++.dg/analyzer/placement-new-size.C
@@ -2,6 +2,7 @@
#include <new>
#include <stdlib.h>
+#include <stdint.h>
extern int get_buf_size ();
@@ -34,4 +35,4 @@ void test_binop ()
int32_t *i = ::new (p + 1) int32_t; /* { dg-warning "heap-based buffer overflow" } */
*i = 42; /* { dg-warning "heap-based buffer overflow" } */
free (p);
-} \ No newline at end of file
+}