Ted Kremenek | 033a07e | 2011-08-03 23:14:55 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -analyze -analyzer-checker=core,experimental.core -analyzer-store=region -verify %s |
Zhongxing Xu | c498848 | 2008-10-22 14:39:20 +0000 | [diff] [blame] | 2 | |
| 3 | void f(void) { |
| 4 | void (*p)(void); |
| 5 | p = f; |
Tom Care | 6216dc0 | 2010-08-30 19:25:43 +0000 | [diff] [blame] | 6 | p = &f; |
Zhongxing Xu | c498848 | 2008-10-22 14:39:20 +0000 | [diff] [blame] | 7 | p(); |
| 8 | (*p)(); |
| 9 | } |
Zhongxing Xu | 92429dd | 2008-10-27 09:21:27 +0000 | [diff] [blame] | 10 | |
| 11 | void g(void (*fp)(void)); |
| 12 | |
| 13 | void f2() { |
| 14 | g(f); |
| 15 | } |