aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Analysis/func.c9
1 files changed, 9 insertions, 0 deletions
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)();
+}