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