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