From c9d6e72c1d5ba082dabad4eeae5f865642276113 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Thu, 28 May 2020 13:13:28 -0400 Subject: [PATCH 190/315] FIXME: update data-model-13.c for fix --- gcc/testsuite/gcc.dg/analyzer/data-model-13.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/gcc/testsuite/gcc.dg/analyzer/data-model-13.c b/gcc/testsuite/gcc.dg/analyzer/data-model-13.c index e7cb8455b7d..69be534144d 100644 --- a/gcc/testsuite/gcc.dg/analyzer/data-model-13.c +++ b/gcc/testsuite/gcc.dg/analyzer/data-model-13.c @@ -14,8 +14,6 @@ void test_1 (void) void test_2 (void) { global_union.ptr_val = malloc (1024); /* { dg-message "allocated here" } */ - global_union.int_val = 0; -} /* { dg-warning "leak of '' " } */ -/* TODO: something better than "". */ -/* TODO: better location for the leak. */ - + global_union.int_val = 0; /* { dg-warning "leak of 'global_union' " } */ +} +/* TODO: 'global_union.ptr_val' would be better than just 'global_union'. */ -- 2.26.2