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