analyzer: convert conditionals-2.c to a torture test
authorDavid Malcolm <dmalcolm@redhat.com>
Thu, 30 Jan 2020 19:57:34 +0000 (14:57 -0500)
committerDavid Malcolm <dmalcolm@redhat.com>
Fri, 31 Jan 2020 00:08:48 +0000 (19:08 -0500)
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
gcc/testsuite/gcc.dg/analyzer/torture/conditionals-2.c [moved from gcc/testsuite/gcc.dg/analyzer/conditionals-2.c with 87% similarity]

index 621d428..77dcc01 100644 (file)
@@ -1,5 +1,11 @@
 2020-01-30  David Malcolm  <dmalcolm@redhat.com>
 
+       * 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  <dmalcolm@redhat.com>
+
        PR analyzer/93356
        * gcc.dg/analyzer/conditionals-notrans.c (test_float_selfcmp):
        Add.
@@ -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