diff options
author | Marek Polacek <polacek@redhat.com> | 2020-07-23 22:20:37 -0400 |
---|---|---|
committer | Marek Polacek <polacek@redhat.com> | 2020-08-10 17:01:47 -0400 |
commit | 636686662326496f68451e7eb91882fe462f850a (patch) | |
tree | c6eaaabf15321e280ce903db7266798bcef821ca /gcc/go/gofrontend/expressions.cc | |
parent | e4ced0b60ccb4c944970304cf74f1ee9086e5553 (diff) | |
download | gcc-636686662326496f68451e7eb91882fe462f850a.zip gcc-636686662326496f68451e7eb91882fe462f850a.tar.gz gcc-636686662326496f68451e7eb91882fe462f850a.tar.bz2 |
testsuite: Introduce dg-ice.
This patch adds a new DejaGNU directive, dg-ice, as outlined in the
proposal here:
https://gcc.gnu.org/pipermail/gcc-patches/2020-July/550913.html
It means that it's expected that the compiler crashes with an internal
compiler error when compiling test with such a directive.
A minor optimization could be to use -pass-exit-codes and then check for
ICE_EXIT_CODE return code instead of using string match.
gcc/ChangeLog:
* doc/sourcebuild.texi: Document dg-ice.
gcc/testsuite/ChangeLog:
* lib/gcc-dg.exp (gcc-dg-test-1): Handle dg-ice.
(cleanup-after-saved-dg-test): Reset expect_ice.
* lib/prune.exp (prune_ices): New.
* lib/target-supports-dg.exp (dg-ice): New.
Diffstat (limited to 'gcc/go/gofrontend/expressions.cc')
0 files changed, 0 insertions, 0 deletions