blob: 1a80a254cba9d0dbfee3c80d735909da88f3e50c [file] [log] [blame]
Ted Kremenek033a07e2011-08-03 23:14:55 +00001// RUN: %clang_cc1 -analyze -analyzer-checker=core,experimental.core -analyzer-store=region -verify %s
Ted Kremenekd1f5ff72008-09-23 18:05:01 +00002
3// This is a test case for the issue reported in PR 2819:
4// http://llvm.org/bugs/show_bug.cgi?id=2819
5// The flow-sensitive dataflow solver should work even when no block in
6// the CFG reaches the exit block.
7
8int g(int x);
9void h(int x);
10
11int f(int x)
12{
13out_err:
14 if (g(x)) {
15 h(x);
16 }
17 goto out_err;
18}