]> git.ipfire.org Git - thirdparty/gcc.git/commit
ipa-sra: Testcase that removing a "returns_nonnull" retval works
authorMartin Jambor <mjambor@suse.cz>
Tue, 16 Nov 2021 09:44:53 +0000 (10:44 +0100)
committerMartin Jambor <mjambor@suse.cz>
Tue, 16 Nov 2021 09:45:32 +0000 (10:45 +0100)
commit9f7fc82014626173bd2c9effa8d8dcb3abd9b06c
tree686738fcf2d17e8302e4c7ce4b2923d192063e1b
parent9ceaf0fee35f6c79cda60e35aad27598dd4dcee6
ipa-sra: Testcase that removing a "returns_nonnull" retval works

Since we can now remove return values of functions with return_nonnull
type attribute, I'll feel a bit safer if we can test this does not ICE
when someone attempts to access a non-existent call LHS.  Eventually
we should probably drop the attribute when this happens.

gcc/testsuite/ChangeLog:

2021-11-15  Martin Jambor  <mjambor@suse.cz>

* gcc.dg/ipa/ipa-sra-ret-nonull.c: New test.
gcc/testsuite/gcc.dg/ipa/ipa-sra-ret-nonull.c [new file with mode: 0644]