aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-10-04 06:07:42 +0100
committerSam James <sam@gentoo.org>2024-10-04 09:42:39 +0100
commita2b7a6fe28a695a7cb6791e072d55ad84dde16bd (patch)
tree46bc2650b8345a67d575f13c8098caef3a1138fa /gcc/testsuite
parenta0cc6941d8c8fa88441fdae1ffb35396a412ec6b (diff)
downloadgcc-a2b7a6fe28a695a7cb6791e072d55ad84dde16bd.zip
gcc-a2b7a6fe28a695a7cb6791e072d55ad84dde16bd.tar.gz
gcc-a2b7a6fe28a695a7cb6791e072d55ad84dde16bd.tar.bz2
testsuite: add missing braces around dejagnu directives
gcc/testsuite/ChangeLog: * c-c++-common/analyzer/flex-without-call-summaries.c: Add missing brace. * c-c++-common/analyzer/malloc-callbacks.c: Ditto. * gcc.dg/Wstringop-overflow-79.c: Ditto. * gcc.dg/Wstringop-overflow-80.c: Ditto.
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/c-c++-common/analyzer/flex-without-call-summaries.c2
-rw-r--r--gcc/testsuite/c-c++-common/analyzer/malloc-callbacks.c2
-rw-r--r--gcc/testsuite/gcc.dg/Wstringop-overflow-79.c28
-rw-r--r--gcc/testsuite/gcc.dg/Wstringop-overflow-80.c28
4 files changed, 30 insertions, 30 deletions
diff --git a/gcc/testsuite/c-c++-common/analyzer/flex-without-call-summaries.c b/gcc/testsuite/c-c++-common/analyzer/flex-without-call-summaries.c
index 092d784..e68ac2f 100644
--- a/gcc/testsuite/c-c++-common/analyzer/flex-without-call-summaries.c
+++ b/gcc/testsuite/c-c++-common/analyzer/flex-without-call-summaries.c
@@ -889,7 +889,7 @@ static int yy_get_next_buffer (void)
}
else
/* Can't grow it, we don't own it. */
- b->yy_ch_buf = NULL; /* { dg-bogus "leak" "PR analyzer/103546" */
+ b->yy_ch_buf = NULL; /* { dg-bogus "leak" "PR analyzer/103546" } */
if ( ! b->yy_ch_buf )
YY_FATAL_ERROR(
diff --git a/gcc/testsuite/c-c++-common/analyzer/malloc-callbacks.c b/gcc/testsuite/c-c++-common/analyzer/malloc-callbacks.c
index 0ba4f38..422b403 100644
--- a/gcc/testsuite/c-c++-common/analyzer/malloc-callbacks.c
+++ b/gcc/testsuite/c-c++-common/analyzer/malloc-callbacks.c
@@ -64,7 +64,7 @@ void test_5 (void)
{
allocator_t alloc_fn = get_alloca ();
deallocator_t dealloc_fn = get_free ();
- int *ptr = (int *) alloc_fn (sizeof (int)); /* dg-message "region created on stack here" } */
+ int *ptr = (int *) alloc_fn (sizeof (int)); /* { dg-message "region created on stack here" } */
dealloc_fn (ptr); /* { dg-warning "'free' of 'ptr' which points to memory on the stack" } */
}
diff --git a/gcc/testsuite/gcc.dg/Wstringop-overflow-79.c b/gcc/testsuite/gcc.dg/Wstringop-overflow-79.c
index 15eb26f..e97cb91 100644
--- a/gcc/testsuite/gcc.dg/Wstringop-overflow-79.c
+++ b/gcc/testsuite/gcc.dg/Wstringop-overflow-79.c
@@ -5,8 +5,8 @@
{ dg-do compile }
{ dg-options "-O0 -Wno-array-bounds" } */
-extern char a[8]; // dg-message at offset \\\[3, 6] into destination object 'a'" "note 1" }
- // dg-message at offset \\\[5, 8] into destination object 'a'" "note 2" { target *-*-* } .-1 }
+extern char a[8]; // { dg-message "at offset \\\[3, 6] into destination object 'a'" "note 1" }
+ // { dg-message "at offset \\\[5, 8] into destination object 'a'" "note 2" { target *-*-* } .-1 }
void test_2_notes (int i)
{
@@ -15,9 +15,9 @@ void test_2_notes (int i)
}
-extern char b[8]; // dg-message at offset \\\[3, 6] into destination object 'b'" "note 1" }
- // dg-message at offset \\\[4, 7] into destination object 'b'" "note 2" { target *-*-* } .-1 }
- // dg-message at offset \\\[5, 8] into destination object 'b'" "note 3" { target *-*-* } .-2 }
+extern char b[8]; // { dg-message "at offset \\\[3, 6] into destination object 'b'" "note 1" }
+ // { dg-message "at offset \\\[4, 7] into destination object 'b'" "note 2" { target *-*-* } .-1 }
+ // { dg-message "at offset \\\[5, 8] into destination object 'b'" "note 3" { target *-*-* } .-2 }
void test_3_notes (int i)
{
@@ -26,10 +26,10 @@ void test_3_notes (int i)
}
-extern char c[8]; // dg-message at offset \\\[3, 6] into destination object 'c'" "note 1" }
- // dg-message at offset \\\[4, 7] into destination object 'c'" "note 2" { target *-*-* } .-1 }
- // dg-message at offset \\\[5, 8] into destination object 'c'" "note 3" { target *-*-* } .-2 }
- // dg-message at offset \\\[6, 8] into destination object 'c'" "note 3" { target *-*-* } .-2 }
+extern char c[8]; // { dg-message "at offset \\\[3, 6] into destination object 'c'" "note 1" }
+ // { dg-message "at offset \\\[4, 7] into destination object 'c'" "note 2" { target *-*-* } .-1 }
+ // { dg-message "at offset \\\[5, 8] into destination object 'c'" "note 3" { target *-*-* } .-2 }
+ // { dg-message "at offset \\\[6, 8] into destination object 'c'" "note 3" { target *-*-* } .-2 }
void test_4_notes (int i)
{
@@ -47,11 +47,11 @@ void test_4_notes (int i)
}
-extern char d[8]; // dg-message at offset \\\[3, 6] into destination object 'd'" "note 1" }
- // dg-message at offset \\\[4, 7] into destination object 'd'" "note 2" { target *-*-* } .-1 }
- // dg-message at offset \\\[5, 8] into destination object 'd'" "note 3" { target *-*-* } .-2 }
- // dg-message at offset \\\[6, 8] into destination object 'd'" "note 3" { target *-*-* } .-3 }
- // dg-message at offset \\\[7, 8] into destination object 'd'" "note 3" { target *-*-* } .-4 }
+extern char d[8]; // { dg-message "at offset \\\[3, 6] into destination object 'd'" "note 1" }
+ // { dg-message "at offset \\\[4, 7] into destination object 'd'" "note 2" { target *-*-* } .-1 }
+ // { dg-message "at offset \\\[5, 8] into destination object 'd'" "note 3" { target *-*-* } .-2 }
+ // { dg-message "at offset \\\[6, 8] into destination object 'd'" "note 3" { target *-*-* } .-3 }
+ // { dg-message "at offset \\\[7, 8] into destination object 'd'" "note 3" { target *-*-* } .-4 }
void test_5_notes (int i)
{
diff --git a/gcc/testsuite/gcc.dg/Wstringop-overflow-80.c b/gcc/testsuite/gcc.dg/Wstringop-overflow-80.c
index 1628c2f..c74ca3a 100644
--- a/gcc/testsuite/gcc.dg/Wstringop-overflow-80.c
+++ b/gcc/testsuite/gcc.dg/Wstringop-overflow-80.c
@@ -5,8 +5,8 @@
{ dg-do compile }
{ dg-options "-O2 -Wno-array-bounds" } */
-extern char a[8]; // dg-message at offset \\\[3, 6] into destination object 'a'" "note 1" }
- // dg-message at offset \\\[5, 8] into destination object 'a'" "note 2" { target *-*-* } .-1 }
+extern char a[8]; // { dg-message "at offset \\\[3, 6] into destination object 'a'" "note 1" }
+ // { dg-message "at offset \\\[5, 8] into destination object 'a'" "note 2" { target *-*-* } .-1 }
void test_2_notes (int i)
{
@@ -15,9 +15,9 @@ void test_2_notes (int i)
}
-extern char b[8]; // dg-message at offset \\\[3, 6] into destination object 'b'" "note 1" }
- // dg-message at offset \\\[4, 7] into destination object 'b'" "note 2" { target *-*-* } .-1 }
- // dg-message at offset \\\[5, 8] into destination object 'b'" "note 3" { target *-*-* } .-2 }
+extern char b[8]; // { dg-message "at offset \\\[3, 6] into destination object 'b'" "note 1" }
+ // { dg-message "at offset \\\[4, 7] into destination object 'b'" "note 2" { target *-*-* } .-1 }
+ // { dg-message "at offset \\\[5, 8] into destination object 'b'" "note 3" { target *-*-* } .-2 }
void test_3_notes (int i)
{
@@ -26,10 +26,10 @@ void test_3_notes (int i)
}
-extern char c[8]; // dg-message at offset \\\[3, 6] into destination object 'c'" "note 1" }
- // dg-message at offset \\\[4, 7] into destination object 'c'" "note 2" { target *-*-* } .-1 }
- // dg-message at offset \\\[5, 8] into destination object 'c'" "note 3" { target *-*-* } .-2 }
- // dg-message at offset \\\[6, 8] into destination object 'c'" "note 3" { target *-*-* } .-2 }
+extern char c[8]; // { dg-message "at offset \\\[3, 6] into destination object 'c'" "note 1" }
+ // { dg-message "at offset \\\[4, 7] into destination object 'c'" "note 2" { target *-*-* } .-1 }
+ // { dg-message "at offset \\\[5, 8] into destination object 'c'" "note 3" { target *-*-* } .-2 }
+ // { dg-message "at offset \\\[6, 8] into destination object 'c'" "note 3" { target *-*-* } .-2 }
void test_4_notes (int i)
{
@@ -47,11 +47,11 @@ void test_4_notes (int i)
}
-extern char d[8]; // dg-message at offset \\\[3, 6] into destination object 'd'" "note 1" }
- // dg-message at offset \\\[4, 7] into destination object 'd'" "note 2" { target *-*-* } .-1 }
- // dg-message at offset \\\[5, 8] into destination object 'd'" "note 3" { target *-*-* } .-2 }
- // dg-message at offset \\\[6, 8] into destination object 'd'" "note 3" { target *-*-* } .-3 }
- // dg-message at offset \\\[7, 8] into destination object 'd'" "note 3" { target *-*-* } .-4 }
+extern char d[8]; // { dg-message "at offset \\\[3, 6] into destination object 'd'" "note 1" }
+ // { dg-message "at offset \\\[4, 7] into destination object 'd'" "note 2" { target *-*-* } .-1 }
+ // { dg-message "at offset \\\[5, 8] into destination object 'd'" "note 3" { target *-*-* } .-2 }
+ // { dg-message "at offset \\\[6, 8] into destination object 'd'" "note 3" { target *-*-* } .-3 }
+ // { dg-message "at offset \\\[7, 8] into destination object 'd'" "note 3" { target *-*-* } .-4 }
void test_5_notes (int i)
{