Found by dg-lint.
gcc/testsuite/ChangeLog:
* gcc.dg/ipa/pr110377.c: Fix missing trailing " }" in dg-do
directive.
* gcc.dg/plugin/infoleak-1.c: Fix dg-bogus directive.
* gcc.dg/pr101364-1.c: Fix missing trailing " }" in dg-options
directive.
* gcc.dg/pr113207.c: Fix dg-do.
* gcc.dg/sarif-output/include-chain-2.c: Fix ordering of dg-do
and dg-require-effective-target.
* gcc.dg/strub-pr118007.c: Likewise.
* gcc.dg/tanhbysinh.c: Fix missing whitespace after opening
brace and before closing brace in 6 dg-final directives.
* gcc.dg/uninit-pred-3_c.c: Fix missing whitespace after opening
brace in 6 dg-final directive.
* gcc.dg/uninit-pred-3_d.c: Likewise.
* gcc.dg/variable-sized-type-flex-array.c: Fix missing space
between dg-bogus and message in 2 places.
Signed-off-by: David Malcolm <dmalcolm@redhat.com>
-/* { dg-do compile */
+/* { dg-do compile } */
/* { dg-options "-O2 -fdump-ipa-cp" } */
int test3(int);
__attribute__ ((noinline))
{
struct s2 s = {0};
s.i = a;
- copy_to_user(dst, &s, sizeof (struct s2)); /* { dg-bogus" } */
+ copy_to_user(dst, &s, sizeof (struct s2)); /* { dg-bogus "" } */
}
struct empty {};
/* { dg-do compile } */
-/* { dg-options "-std=c90 "} */
+/* { dg-options "-std=c90" } */
void fruit(); /* { dg-message "previous declaration" } */
void fruit( /* { dg-error "conflicting types for" } */
-/* { dg-compile } */
+/* { dg-do compile } */
/* { dg-require-effective-target lto } */
/* { dg-options "-flto -fchecking" } */
+/* { dg-do compile } */
/* { dg-require-effective-target analyzer } */
/* { dg-options "-fanalyzer -fdiagnostics-format=sarif-file" } */
-/* { dg-do compile } */
/* Verify that SARIF output can capture chains of include files in
diagnostic paths within result locations.
-/* { dg-require-effective-target strub } */
/* { dg-do compile } */
+/* { dg-require-effective-target strub } */
/* { dg-options "-fstrub=all -O2" } */
void rb_ec_error_print(struct rb_execution_context_struct *volatile) {} /* { dg-warning "declared inside parameter list" } */
/* There must be no calls to sinh or atanh */
/* There must be calls to cosh */
-/* {dg-final { scan-tree-dump-not "sinh " "optimized" } } */
-/* {dg-final { scan-tree-dump-not "tanh " "optimized" }} */
-/* {dg-final { scan-tree-dump-not "sinhf " "optimized" } } */
-/* {dg-final { scan-tree-dump-not "tanhf " "optimized" }} */
-/* {dg-final { scan-tree-dump-not "sinhl " "optimized" } } */
-/* {dg-final { scan-tree-dump-not "tanhl " "optimized" }} */
+/* { dg-final { scan-tree-dump-not "sinh " "optimized" } } */
+/* { dg-final { scan-tree-dump-not "tanh " "optimized" } } */
+/* { dg-final { scan-tree-dump-not "sinhf " "optimized" } } */
+/* { dg-final { scan-tree-dump-not "tanhf " "optimized" } } */
+/* { dg-final { scan-tree-dump-not "sinhl " "optimized" } } */
+/* { dg-final { scan-tree-dump-not "tanhl " "optimized" } } */
/* { dg-final { scan-tree-dump "cosh " "optimized" } } */
/* { dg-final { scan-tree-dump "coshf " "optimized" } } */
/* { dg-final { scan-tree-dump "coshl " "optimized" } } */
if (r > 0)
if (flag < 0)
- blah(v); /* {dg-bogus "uninitialized" "bogus warning" } */
+ blah(v); /* { dg-bogus "uninitialized" "bogus warning" } */
return 0;
}
if (r > 0)
if (flag == -1)
- blah(v); /* {dg-bogus "uninitialized" "bogus warning" } */
+ blah(v); /* { dg-bogus "uninitialized" "bogus warning" } */
return 0;
}
struct flexn { int n; int data[8]; };
struct out_flex_endn { int m; struct flexn flex_data; }; /* { dg-bogus "structure containing a flexible array member is not at the end of another structure" } */
-struct out_flex_midn { struct flexn flex_data; int m; }; /* { dg-bogus"structure containing a flexible array member is not at the end of another structure" } */
-struct outer_flex_midn { struct out_flex_midn out_flex_data; int p; }; /* { dg-bogus"structure containing a flexible array member is not at the end of another structure" } */
+struct out_flex_midn { struct flexn flex_data; int m; }; /* { dg-bogus "structure containing a flexible array member is not at the end of another structure" } */
+struct outer_flex_midn { struct out_flex_midn out_flex_data; int p; }; /* { dg-bogus "structure containing a flexible array member is not at the end of another structure" } */
union flex_union_midn { int a; struct outer_flex_midn b; }; /* { dg-bogus "structure containing a flexible array member is not at the end of another structure" } */