]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Disable uninit-pr95825-1.C if address sanitizer is not supported
authorAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Sat, 14 Feb 2026 03:54:15 +0000 (19:54 -0800)
committerAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Sat, 14 Feb 2026 04:14:09 +0000 (20:14 -0800)
I had forgot to check to make sure address sanitizer is supported.
Disable this test case if there is no address sanitizer.

Pushed as obvious after testing it.

gcc/testsuite/ChangeLog:

* g++.dg/warn/uninit-pr95825-1.C: Skip if no address sanitizer.

gcc/testsuite/g++.dg/warn/uninit-pr95825-1.C

index 01a9b26a1f21d8d6e6f8c1003e1e9a5983e87206..2f33edddee7f221cae4658aa3d56b9b168b513f6 100644 (file)
@@ -1,5 +1,6 @@
 // { dg-do compile }
 // { dg-options "-O1 -fsanitize=address" }
+// { dg-skip-if "no address sanitizer" { no_fsanitize_address } }
 
 // PR tree-optimization/95825