testsuite: Remove unused dg-line in ce8cdf5bcf96a2db6d7b9f656fc9ba58d7942a83

Message ID 20230815183208.330060-1-vultkayn@gcc.gnu.org
State Unresolved
Headers
Series testsuite: Remove unused dg-line in ce8cdf5bcf96a2db6d7b9f656fc9ba58d7942a83 |

Checks

Context Check Description
snail/gcc-patch-check warning Git am fail log

Commit Message

Li, Pan2 via Gcc-patches Aug. 15, 2023, 6:32 p.m. UTC
  From: benjamin priour <vultkayn@gcc.gnu.org>

Yet another blunder.

Succesfully regstrapped against ce8cdf5bcf96a2db6d7b9f656fc9ba58d7942a83
on x86_64-linux-gnu.

OK to push on trunk ?
Sorry,
Benjamin.

Fixup below.
---

Test case g++.dg/analyzer/fanalyzer-show-events-in-system-headers.C
introduced by patch ce8cdf5bcf96a2db6d7b9f656fc9ba58d7942a83
emitted a warning for an unused dg-line variable.
This fixes up the blunder.

Signed-off-by: benjamin priour <vultkayn@gcc.gnu.org>

gcc/testsuite/ChangeLog:

	* g++.dg/analyzer/fanalyzer-show-events-in-system-headers.C:
	Remove dg-line var declare_a.
---
 .../g++.dg/analyzer/fanalyzer-show-events-in-system-headers.C   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Richard Biener Aug. 17, 2023, 8:41 a.m. UTC | #1
On Tue, Aug 15, 2023 at 8:36 PM Benjamin Priour via Gcc-patches
<gcc-patches@gcc.gnu.org> wrote:
>
> From: benjamin priour <vultkayn@gcc.gnu.org>
>
> Yet another blunder.
>
> Succesfully regstrapped against ce8cdf5bcf96a2db6d7b9f656fc9ba58d7942a83
> on x86_64-linux-gnu.
>
> OK to push on trunk ?

OK.

> Sorry,
> Benjamin.
>
> Fixup below.
> ---
>
> Test case g++.dg/analyzer/fanalyzer-show-events-in-system-headers.C
> introduced by patch ce8cdf5bcf96a2db6d7b9f656fc9ba58d7942a83
> emitted a warning for an unused dg-line variable.
> This fixes up the blunder.
>
> Signed-off-by: benjamin priour <vultkayn@gcc.gnu.org>
>
> gcc/testsuite/ChangeLog:
>
>         * g++.dg/analyzer/fanalyzer-show-events-in-system-headers.C:
>         Remove dg-line var declare_a.
> ---
>  .../g++.dg/analyzer/fanalyzer-show-events-in-system-headers.C   | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/gcc/testsuite/g++.dg/analyzer/fanalyzer-show-events-in-system-headers.C b/gcc/testsuite/g++.dg/analyzer/fanalyzer-show-events-in-system-headers.C
> index 4cc93d129f0..aa964f93563 100644
> --- a/gcc/testsuite/g++.dg/analyzer/fanalyzer-show-events-in-system-headers.C
> +++ b/gcc/testsuite/g++.dg/analyzer/fanalyzer-show-events-in-system-headers.C
> @@ -6,7 +6,7 @@
>  struct A {int x; int y;};
>
>  int main () { /* { dg-message "\\(1\\) entry to 'main'" "telltale event that we are going within a deeper frame than 'main'" } */
> -  std::shared_ptr<A> a; /* { dg-line declare_a } */
> +  std::shared_ptr<A> a;
>    a->x = 4; /* { dg-line deref_a } */
>    /* { dg-warning "dereference of NULL" "" { target *-*-* } deref_a } */
>
> --
> 2.34.1
>
  

Patch

diff --git a/gcc/testsuite/g++.dg/analyzer/fanalyzer-show-events-in-system-headers.C b/gcc/testsuite/g++.dg/analyzer/fanalyzer-show-events-in-system-headers.C
index 4cc93d129f0..aa964f93563 100644
--- a/gcc/testsuite/g++.dg/analyzer/fanalyzer-show-events-in-system-headers.C
+++ b/gcc/testsuite/g++.dg/analyzer/fanalyzer-show-events-in-system-headers.C
@@ -6,7 +6,7 @@ 
 struct A {int x; int y;};
 
 int main () { /* { dg-message "\\(1\\) entry to 'main'" "telltale event that we are going within a deeper frame than 'main'" } */
-  std::shared_ptr<A> a; /* { dg-line declare_a } */ 
+  std::shared_ptr<A> a;
   a->x = 4; /* { dg-line deref_a } */ 
   /* { dg-warning "dereference of NULL" "" { target *-*-* } deref_a } */