repo.or.cz
/
clang.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[Heikki Kultala] This patch contains the ABI changes for the TCE target.
[clang.git]
/
test
/
CodeGen
/
offsetof.c
blob
c279e2282e460adf9f2f9f4a3488de720ba4c93d
1
// RUN: %clang_cc1 %s -emit-llvm -o %t
2
3
// PR2910
4
struct
sockaddr_un
{
5
unsigned char
sun_len
;
6
char
sun_path
[
104
];
7
};
8
9
int
test
(
int
len
) {
10
return
__builtin_offsetof
(
struct
sockaddr_un
,
sun_path
[
len
+
1
]);
11
}
12