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] Handle __declspec() attributes in using
[llvm-project.git]
/
clang
/
test
/
CodeGenCXX
/
2008-05-07-CrazyOffsetOf.cpp
blob
6967df9d94e0ec5818d0baf044ddcfacc7689fdf
1
// RUN: %clang_cc1 -triple=x86_64-unknown-linux -emit-llvm %s -o - | FileCheck %s
2
// rdar://5914926
3
4
struct
bork
{
5
struct
bork
*
next_local
;
6
char
*
query
;
7
};
8
int
offset
= (
char
*) &(((
struct
bork
*)
0x10
)->
query
) - (
char
*)
0x10
;
9
// CHECK: @offset = global i32 8, align 4