func.c revision a5728872c7702ddd09537c95bc3cbd20e1f2fb09
1// RUN: %clang_cc1 -analyze -analyzer-experimental-internal-checks -checker-cfref -analyzer-store=basic -verify %s 2// RUN: %clang_cc1 -analyze -analyzer-experimental-internal-checks -checker-cfref -analyzer-store=region -verify %s 3 4void f(void) { 5 void (*p)(void); 6 p = f; 7 p = &f; 8 p(); 9 (*p)(); 10} 11 12void g(void (*fp)(void)); 13 14void f2() { 15 g(f); 16} 17