1*67e74705SXin Li // RUN: %clang_cc1 -analyze -analyzer-checker=core,alpha.core -analyzer-store=region -verify %s 2*67e74705SXin Li // expected-no-diagnostics 3*67e74705SXin Li 4*67e74705SXin Li // This is a test case for the issue reported in PR 2819: 5*67e74705SXin Li // http://llvm.org/bugs/show_bug.cgi?id=2819 6*67e74705SXin Li // The flow-sensitive dataflow solver should work even when no block in 7*67e74705SXin Li // the CFG reaches the exit block. 8*67e74705SXin Li 9*67e74705SXin Li int g(int x); 10*67e74705SXin Li void h(int x); 11*67e74705SXin Li f(int x)12*67e74705SXin Liint f(int x) 13*67e74705SXin Li { 14*67e74705SXin Li out_err: 15*67e74705SXin Li if (g(x)) { 16*67e74705SXin Li h(x); 17*67e74705SXin Li } 18*67e74705SXin Li goto out_err; 19*67e74705SXin Li } 20