[cfe-commits] r57979 - /cfe/trunk/test/Analysis/func.c

Zhongxing Xu xuzhongxing at gmail.com
Wed Oct 22 07:39:22 PDT 2008


Author: zhongxingxu
Date: Wed Oct 22 09:39:20 2008
New Revision: 57979

URL: http://llvm.org/viewvc/llvm-project?rev=57979&view=rev
Log:
Add test case for FuncDecl and function pointer variable.

Added:
    cfe/trunk/test/Analysis/func.c

Added: cfe/trunk/test/Analysis/func.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/func.c?rev=57979&view=auto

==============================================================================
--- cfe/trunk/test/Analysis/func.c (added)
+++ cfe/trunk/test/Analysis/func.c Wed Oct 22 09:39:20 2008
@@ -0,0 +1,9 @@
+// RUN: clang -checker-simple -verify %s
+
+void f(void) {
+  void (*p)(void);
+  p = f;
+  p = &f;
+  p();
+  (*p)();
+}





More information about the cfe-commits mailing list