diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2023-09-01 04:36:03 +0200 |
---|---|---|
committer | Hans-Peter Nilsson <hp@bitrange.com> | 2023-09-01 21:00:38 +0200 |
commit | d3dd69706af4c086cb3385ff1f321887b91f49fb (patch) | |
tree | 2543af306256fcfa5bd1285339497405d0c194ee | |
parent | b0d75f7d3bb24e94c5a3d764c95d598ad6b6ca48 (diff) | |
download | gcc-d3dd69706af4c086cb3385ff1f321887b91f49fb.zip gcc-d3dd69706af4c086cb3385ff1f321887b91f49fb.tar.gz gcc-d3dd69706af4c086cb3385ff1f321887b91f49fb.tar.bz2 |
testsuite: Fix analyzer_cpython_plugin.c declarations, PR testsuite/111264
Also, add missing newline at end of file.
PR testsuite/111264
* gcc.dg/plugin/analyzer_cpython_plugin.c: Make declarations
C++11-compatible.
-rw-r--r-- | gcc/testsuite/gcc.dg/plugin/analyzer_cpython_plugin.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/testsuite/gcc.dg/plugin/analyzer_cpython_plugin.c b/gcc/testsuite/gcc.dg/plugin/analyzer_cpython_plugin.c index 7af5204..bf1982e 100644 --- a/gcc/testsuite/gcc.dg/plugin/analyzer_cpython_plugin.c +++ b/gcc/testsuite/gcc.dg/plugin/analyzer_cpython_plugin.c @@ -477,8 +477,8 @@ pyobj_refcnt_checker (const region_model *model, if (!ctxt) return; - auto region_to_refcnt = hash_map<const region *, int> (); - auto seen_regions = hash_set<const region *> (); + hash_map<const region *, int> region_to_refcnt; + hash_set<const region *> seen_regions; count_pyobj_references (model, region_to_refcnt, retval, seen_regions); check_refcnts (model, old_model, retval, ctxt, region_to_refcnt); @@ -561,7 +561,7 @@ public: if (!ctxt) return; region_model *model = cd.get_model (); - auto region_to_refcnt = hash_map<const region *, int> (); + hash_map<const region *, int> region_to_refcnt; count_all_references(model, region_to_refcnt); dump_refcnt_info(region_to_refcnt, model, ctxt); } @@ -1330,4 +1330,4 @@ plugin_init (struct plugin_name_args *plugin_info, sorry_no_analyzer (); #endif return 0; -}
\ No newline at end of file +} |