From: Zhongxing Xu Date: Wed, 22 Oct 2008 14:39:20 +0000 (+0000) Subject: Add test case for FuncDecl and function pointer variable. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c498848ebcf22a9de23143b342f28b6d4f515436;p=clang Add test case for FuncDecl and function pointer variable. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57979 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Analysis/func.c b/test/Analysis/func.c new file mode 100644 index 0000000000..94ea0eb300 --- /dev/null +++ b/test/Analysis/func.c @@ -0,0 +1,9 @@ +// RUN: clang -checker-simple -verify %s + +void f(void) { + void (*p)(void); + p = f; + p = &f; + p(); + (*p)(); +}