diff options
author | Sandra Loosemore <sandra@codesourcery.com> | 2023-12-22 02:10:32 +0000 |
---|---|---|
committer | Sandra Loosemore <sandra@codesourcery.com> | 2023-12-22 02:27:05 +0000 |
commit | 5cb79aa2bdb2f6713b595b43637296a2cbdd6521 (patch) | |
tree | 4032e05717069362419b36e9e8575b5342d28328 /gcc | |
parent | d26f589e61a178e898d8b247042b487287ffe121 (diff) | |
download | gcc-5cb79aa2bdb2f6713b595b43637296a2cbdd6521.zip gcc-5cb79aa2bdb2f6713b595b43637296a2cbdd6521.tar.gz gcc-5cb79aa2bdb2f6713b595b43637296a2cbdd6521.tar.bz2 |
Testsuite: Fix failures in g++.dg/analyzer/placement-new-size.C
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/g++.dg/analyzer/placement-new-size.C | 3 |
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 +} |