repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git]
/
clang
/
test
/
Sema
/
assign-null.c
blob
19b091e21bcf381f2a14b487195712af3741a9f1
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
9
void
clear_hook
(
void
) {
10
hook
=
NULL
;
11
}