From e34ad101a4338eab41e38e624f2c7178d0b83d24 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Thu, 30 Jan 2020 14:57:34 -0500 Subject: [PATCH] analyzer: convert conditionals-2.c to a torture test 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/testsuite/ChangeLog | 6 ++++++ .../gcc.dg/analyzer/{ => torture}/conditionals-2.c | 6 ++---- 2 files changed, 8 insertions(+), 4 deletions(-) rename gcc/testsuite/gcc.dg/analyzer/{ => torture}/conditionals-2.c (87%) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 621d4283ae3..77dcc013b3f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2020-01-30 David Malcolm + + * gcc.dg/analyzer/conditionals-2.c: Move to... + * gcc.dg/analyzer/torture/conditionals-2.c: ...here, converting + to a torture test. Remove redundant include. + 2020-01-30 David Malcolm PR analyzer/93356 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 -#include "analyzer-decls.h" +#include "../analyzer-decls.h" #define Z_NULL 0 -- 2.30.2