]> git.ipfire.org Git - thirdparty/gcc.git/commit
testsuite: torture: add LLVM testcase for DSE vs. -ftrivial-auto-var-init=
authorSam James <sam@gentoo.org>
Fri, 13 Dec 2024 04:42:29 +0000 (04:42 +0000)
committerSam James <sam@gentoo.org>
Fri, 3 Jan 2025 16:49:44 +0000 (16:49 +0000)
commit26ca00eeedb01f9d5102586b76ae2a6e787111af
tree3a9e79fc7cfa7c4704a5ccc61c8322eb4802638f
parentc7754a2fb2e60987524947fe189f3ffac035ea1d
testsuite: torture: add LLVM testcase for DSE vs. -ftrivial-auto-var-init=

This testcase came up in a recent LLVM bug report [0] for DSE vs
-ftrivial-auto-var-init=. Add it to our testsuite given that area
could do with better coverage.

[0] https://github.com/llvm/llvm-project/issues/119646

gcc/testsuite/ChangeLog:

* gcc.dg/torture/dse-trivial-auto-var-init.c: New test.

Co-authored-by: Andrew Pinski <pinskia@gmail.com>
gcc/testsuite/gcc.dg/torture/dse-trivial-auto-var-init.c [new file with mode: 0644]