blob: 33e01111af822724569cda2d981b516f36e9d16d [file] [log] [blame]
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00001// RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic -verify %s
Daniel Dunbard7d5f022009-03-24 02:24:46 +00002// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -verify %s
Zhongxing Xuc4988482008-10-22 14:39:20 +00003
4void f(void) {
5 void (*p)(void);
6 p = f;
7 p = &f;
8 p();
9 (*p)();
10}
Zhongxing Xu92429dd2008-10-27 09:21:27 +000011
12void g(void (*fp)(void));
13
14void f2() {
15 g(f);
16}