blob: 49f2731256911237533e43bdf7270eb9ce98cb5f [file] [log] [blame]
Ted Kremenekf1456aa2009-01-22 22:43:59 +00001// RUN: clang -analyze -checker-simple -verify %s &&
2// RUN: clang -analyze -checker-cfref -analyzer-store-basic -verify %s &&
3// RUN: clang -analyze -checker-cfref -analyzer-store-region -verify %s
Zhongxing Xuc4988482008-10-22 14:39:20 +00004
5void f(void) {
6 void (*p)(void);
7 p = f;
8 p = &f;
9 p();
10 (*p)();
11}
Zhongxing Xu92429dd2008-10-27 09:21:27 +000012
13void g(void (*fp)(void));
14
15void f2() {
16 g(f);
17}