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.
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 } */