blob: 94ca2694fea5275b29985d299568a4f8c9841afe [file] [log] [blame]
Ted Kremenekf1456aa2009-01-22 22:43:59 +00001// RUN: clang -analyze -checker-simple -verify %s &&
Ted Kremenekbe1fe1e2009-02-17 04:27:41 +00002// 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}