xref: /aosp_15_r20/external/clang/test/Sema/assign-null.c (revision 67e74705e28f6214e480b399dd47ea732279e315)
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // expected-no-diagnostics
3 
4 #include <stddef.h>
5 
6 typedef void (*hookfunc)(void *arg);
7 hookfunc hook;
8 
clear_hook()9 void clear_hook() {
10   hook = NULL;
11 }
12