Author: mramalho Date: Thu Jun 28 14:39:41 2018 New Revision: 335929 URL: http://llvm.org/viewvc/llvm-project?rev=335929&view=rev Log: [analyzer] Move test to the correct directory
It was accidentaly pushed in r335926 Added: cfe/trunk/test/Analysis/PR37855.c - copied, changed from r335927, cfe/trunk/test/PR37855.c Removed: cfe/trunk/test/PR37855.c Copied: cfe/trunk/test/Analysis/PR37855.c (from r335927, cfe/trunk/test/PR37855.c) URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/PR37855.c?p2=cfe/trunk/test/Analysis/PR37855.c&p1=cfe/trunk/test/PR37855.c&r1=335927&r2=335929&rev=335929&view=diff ============================================================================== (empty) Removed: cfe/trunk/test/PR37855.c URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/PR37855.c?rev=335928&view=auto ============================================================================== --- cfe/trunk/test/PR37855.c (original) +++ cfe/trunk/test/PR37855.c (removed) @@ -1,24 +0,0 @@ -// RUN: %clang_cc1 -analyze -analyzer-eagerly-assume -analyzer-checker=core -w -DNO_CROSSCHECK -verify %s -// RUN: %clang_cc1 -analyze -analyzer-eagerly-assume -analyzer-checker=core -w -analyzer-config crosscheck-with-z3=true -verify %s -// REQUIRES: z3 - -typedef struct o p; -struct o { - struct { - } s; -}; - -void q(*r, p2) { r < p2; } - -void k(l, node) { - struct { - p *node; - } * n, *nodep, path[sizeof(void)]; - path->node = l; - for (n = path; node != l;) { - q(node, n->node); - nodep = n; - } - if (nodep) // expected-warning {{Branch condition evaluates to a garbage value}} - n[1].node->s; // expected-warning {{Dereference of undefined pointer value}} -} _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits