func.c revision c4d2c9074be6eb2091086eddd6c8f052f3b245c8
1// RUN: %clang_cc1 -analyze -analyzer-checker=core,core.experimental -analyzer-store=basic -verify %s 2// RUN: %clang_cc1 -analyze -analyzer-checker=core,core.experimental -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