[Committed,obvious] Testsuite: Fix failures in g++.dg/analyzer/placement-new-size.C
Checks
Commit Message
This testcase was failing on uses of int8_t, int64_t, etc without
including <stdint.h>.
gcc/testsuite/ChangeLog
* g++.dg/analyzer/placement-new-size.C: Include <stdint.h>. Also
add missing newline to end of file.
---
gcc/testsuite/g++.dg/analyzer/placement-new-size.C | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
@@ -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
+}