]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite/100272 - fix some malformed dg directives
authorRichard Biener <rguenther@suse.de>
Tue, 27 Apr 2021 08:45:32 +0000 (10:45 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 27 Apr 2021 08:45:32 +0000 (10:45 +0200)
The bug points out several malformed dg directives, the following
fixes the obvious ones where the testcases keep working after the
change.

2021-04-27  Richard Biener  <rguenther@suse.de>

PR testsuite/100272
* g++.dg/diagnostic/ptrtomem1.C: Fix dg directives.
* g++.dg/ipa/pr45572-2.C: Likewise.
* g++.dg/template/spec26.C: Likewise.
* gcc.dg/pr20126.c: Likewise.
* gcc.dg/tree-ssa/pr20739.c: Likewise.

gcc/testsuite/g++.dg/diagnostic/ptrtomem1.C
gcc/testsuite/g++.dg/ipa/pr45572-2.C
gcc/testsuite/g++.dg/template/spec26.C
gcc/testsuite/gcc.dg/pr20126.c
gcc/testsuite/gcc.dg/tree-ssa/pr20739.c

index bb1327f7af1317bba1c7945492fa088167f79a09..9f9b77ae4035e9fa2a9455d6aedee397d96ca51b 100644 (file)
@@ -19,7 +19,7 @@ void f2(T)
 { }
 
 template<typename T>
-requires (sizeof(T)==1) // dg-message {\[with T = int \(X::\*\)\[5\]\]} }
+requires (sizeof(T)==1) // dg-message {\[with T = int \(X::\*\)\[5\]\]} }
 void f3(T)
 { }
 
index 8b583d9c5d5cb24d4965350b9ffe8113d5356875..9bf49acb450e5671635facb3920b720b9285bbf8 100644 (file)
@@ -1,5 +1,5 @@
 // { dg-do compile }
-// { dg-options "-finline-small-functions -findirect-inlining -finline-function+
+// { dg-options "-finline-small-functions -findirect-inlining -finline-functions -O" }
 typedef struct
 {} __mpf_struct;
 typedef __mpf_struct mpf_t[1];
index 3d187071afe1d9c2051405db19415ebfbbb08b6a..fad8e3e151932285b4b3ba8a4dab8412cb8c8be2 100644 (file)
@@ -1,4 +1,4 @@
-// dg-do run
+// { dg-do run }
 // Copyright (C) 2005 Free Software Foundation, Inc.
 // Contributed by Nathan Sidwell 16 Sep 2005 <nathan@codesourcery.com>
 
index 257832ab18a5b2bca9d090b376b79617f6e6afb0..a421ce1758ddd265793784511dd809e873c0e8b4 100644 (file)
@@ -1,5 +1,5 @@
-/* dg-do run */
-/* dg-options "-O2" */
+/* { dg-do run } */
+/* { dg-options "-O2" } */
 
 /* PR target/20126 was not really target-specific, but rather a loop's
    failure to take into account the possibility that a DEST_ADDR giv
index c1e7b58e38543532f4d200193dc1767f9a654dd7..d7fff14f953891933e7fe49353aa6a549ac39691 100644 (file)
@@ -1,7 +1,7 @@
 /* PR middle-end/20739 */
 
-/* dg-do compile */
-/* dg-options "-O" */
+/* { dg-do compile } */
+/* { dg-options "-O" } */
 
 /* We used to fail to compile this because gimplification dropped the
    conversion that added the const qualifier to the sub-expression