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
Verify that output/input asm constraints really look like outputs/inputs.
[smatch.git]
/
validation
/
struct-as.c
blob
f5752f0c2e790b12c0da12a9cf013e25ad763ac9
1
/*
2
* Structure members should get the address
3
* space of their pointer.
4
*/
5
#define __user __attribute__((address_space(1)))
6
7
struct
hello
{
8
int
a
;
9
};
10
11
extern
int
test
(
int
__user
*
ip
);
12
13
int
broken
(
struct
hello __user
*
sp
)
14
{
15
test
(&
sp
->
a
);
16
}