You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
209 B
13 lines
209 B
7 months ago
|
// RUN: %clang_cc1 %s -emit-llvm -o %t
|
||
|
|
||
|
// PR2910
|
||
|
struct sockaddr_un {
|
||
|
unsigned char sun_len;
|
||
|
char sun_path[104];
|
||
|
};
|
||
|
|
||
|
int test(int len) {
|
||
|
return __builtin_offsetof(struct sockaddr_un, sun_path[len+1]);
|
||
|
}
|
||
|
|