[committed] analyzer: convert conditionals-2.c to a torture test

Message ID 20200131001035.16140-1-dmalcolm@redhat.com
State New
Headers show
Series
  • [committed] analyzer: convert conditionals-2.c to a torture test
Related show

Commit Message

David Malcolm Jan. 31, 2020, 12:10 a.m.
Successfully regrtested on x86_64-pc-linux-gnu.
Committed to master as e34ad101a4338eab41e38e624f2c7178d0b83d24.

gcc/testsuite/ChangeLog:
	* gcc.dg/analyzer/conditionals-2.c: Move to...
	* gcc.dg/analyzer/torture/conditionals-2.c: ...here, converting
	to a torture test.  Remove redundant include.
---
 .../gcc.dg/analyzer/{ => torture}/conditionals-2.c          | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
 rename gcc/testsuite/gcc.dg/analyzer/{ => torture}/conditionals-2.c (87%)

-- 
2.21.0

Patch

diff --git a/gcc/testsuite/gcc.dg/analyzer/conditionals-2.c b/gcc/testsuite/gcc.dg/analyzer/torture/conditionals-2.c
similarity index 87%
rename from gcc/testsuite/gcc.dg/analyzer/conditionals-2.c
rename to gcc/testsuite/gcc.dg/analyzer/torture/conditionals-2.c
index 6f291f4861b..5580d22ab92 100644
--- a/gcc/testsuite/gcc.dg/analyzer/conditionals-2.c
+++ b/gcc/testsuite/gcc.dg/analyzer/torture/conditionals-2.c
@@ -1,8 +1,6 @@ 
-// TODO: run this test case at every optimization level
-/* { dg-additional-options "-O2" } */
+/* { dg-skip-if "" { *-*-* } { "-fno-fat-lto-objects" } { "" } } */
 
-#include <stddef.h>
-#include "analyzer-decls.h"
+#include "../analyzer-decls.h"
 
 #define Z_NULL 0