repo.or.cz
/
smatch.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
simplify '(x / -1)' to '-x' (but only for signed division)
[smatch.git]
/
validation
/
typeof-noderef.c
blob
e95a53ad46d7ef304683a258d9fdc89fe2345426
1
#define __noderef __attribute__((noderef))
2
3
static void
test_noderef
(
void
)
4
{
5
int
__noderef obj
, *
ptr
;
6
typeof
(
ptr
)
ptr2
=
ptr
;
7
typeof
(*
ptr
) *
ptr3
=
ptr
;
8
typeof
(
obj
) *
ptr4
=
ptr
;
9
ptr
=
ptr
;
10
ptr
= &
obj
;
11
}
12
13
/*
14
* check-name: typeof-noderef
15
* check-known-to-fail
16
*
17
* check-error-start
18
* check-error-end
19
*/