summaryrefslogtreecommitdiff
path: root/clang/test/Sema/assign-null.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Sema/assign-null.c')
-rw-r--r--clang/test/Sema/assign-null.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/Sema/assign-null.c b/clang/test/Sema/assign-null.c
new file mode 100644
index 0000000..7f172b1
--- /dev/null
+++ b/clang/test/Sema/assign-null.c
@@ -0,0 +1,10 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s
+
+#include <stddef.h>
+
+typedef void (*hookfunc)(void *arg);
+hookfunc hook;
+
+void clear_hook() {
+ hook = NULL;
+}