]> git.ipfire.org Git - thirdparty/gcc.git/commit
testsuite: Fix testcase g++.dg/modules/indirect-1_b.C [PR116846]
authorNathaniel Shead <nathanieloshead@gmail.com>
Thu, 26 Sep 2024 01:12:02 +0000 (11:12 +1000)
committerNathaniel Shead <nathanieloshead@gmail.com>
Thu, 26 Sep 2024 01:20:28 +0000 (11:20 +1000)
commit064d5c67d7ad2be446c19e84f0cd993ecab784c3
tree005b753e9048cca9dc378d1a8cbb4e228a8d6d3f
parent12c8cb8fa51b7ed0b9af30b30a4fda39294a59d1
testsuite: Fix testcase g++.dg/modules/indirect-1_b.C [PR116846]

r15-3878 exposed a mistake in the testcase, probably from an older
version of the dumping logic.

Apart from the slightly different syntax for the dump line, also check
for importing the type_decl rather than the const_decl (we need the type
anyway and importing the type also brings along the enumerators so it
would be unnecessary to seed an import for them as well).

PR c++/116846

gcc/testsuite/ChangeLog:

* g++.dg/modules/indirect-1_b.C: Fix testcase.

Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com>
gcc/testsuite/g++.dg/modules/indirect-1_b.C