Debian Codegraph @

gcc/testsuite/g++.dg/warn/Wuse-after-free5.C

raw
1 // Check the suppression of -Wuse-after-free for destructors on ARM
2 // { dg-do compile }
3 // { dg-options "-Wuse-after-free" }
4
5 struct range_label {
6 virtual ~range_label();
7 };
8
9 struct unpaired_bidi_rich_location {
10 struct custom_range_label : range_label {};
11 unpaired_bidi_rich_location(int);
12 custom_range_label m_custom_label;
13 };
14
15 void maybe_warn_bidi_on_close() { unpaired_bidi_rich_location(0); }