blob: b6cebde81091ad04fc4457579565b1908d69b737 [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
Zhongxing Xuc4988482008-10-22 14:39:20 +00002
3void f(void) {
4 void (*p)(void);
5 p = f;
Tom Care6216dc02010-08-30 19:25:43 +00006 p = &f;
Zhongxing Xuc4988482008-10-22 14:39:20 +00007 p();
8 (*p)();
9}
Zhongxing Xu92429dd2008-10-27 09:21:27 +000010
11void g(void (*fp)(void));
12
13void f2() {
14 g(f);
15}