From 3bc0d418a5d214a8ba57857656ca5c618df1a4bb Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Tue, 27 Apr 2021 10:45:32 +0200 Subject: [PATCH] testsuite/100272 - fix some malformed dg directives 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 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 | 2 +- gcc/testsuite/g++.dg/ipa/pr45572-2.C | 2 +- gcc/testsuite/g++.dg/template/spec26.C | 2 +- gcc/testsuite/gcc.dg/pr20126.c | 4 ++-- gcc/testsuite/gcc.dg/tree-ssa/pr20739.c | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gcc/testsuite/g++.dg/diagnostic/ptrtomem1.C b/gcc/testsuite/g++.dg/diagnostic/ptrtomem1.C index bb1327f..9f9b77a 100644 --- a/gcc/testsuite/g++.dg/diagnostic/ptrtomem1.C +++ b/gcc/testsuite/g++.dg/diagnostic/ptrtomem1.C @@ -19,7 +19,7 @@ void f2(T) { } template -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) { } diff --git a/gcc/testsuite/g++.dg/ipa/pr45572-2.C b/gcc/testsuite/g++.dg/ipa/pr45572-2.C index 8b583d9..9bf49ac 100644 --- a/gcc/testsuite/g++.dg/ipa/pr45572-2.C +++ b/gcc/testsuite/g++.dg/ipa/pr45572-2.C @@ -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]; diff --git a/gcc/testsuite/g++.dg/template/spec26.C b/gcc/testsuite/g++.dg/template/spec26.C index 3d18707..fad8e3e 100644 --- a/gcc/testsuite/g++.dg/template/spec26.C +++ b/gcc/testsuite/g++.dg/template/spec26.C @@ -1,4 +1,4 @@ -// dg-do run +// { dg-do run } // Copyright (C) 2005 Free Software Foundation, Inc. // Contributed by Nathan Sidwell 16 Sep 2005 diff --git a/gcc/testsuite/gcc.dg/pr20126.c b/gcc/testsuite/gcc.dg/pr20126.c index 257832a..a421ce1 100644 --- a/gcc/testsuite/gcc.dg/pr20126.c +++ b/gcc/testsuite/gcc.dg/pr20126.c @@ -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 diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr20739.c b/gcc/testsuite/gcc.dg/tree-ssa/pr20739.c index c1e7b58..d7fff14 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr20739.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr20739.c @@ -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 -- 2.7.4