aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeGenCXX/2008-05-07-CrazyOffsetOf.cpp
blob: cb31a04c69fea6c8957e46695c8b0a35aa448945 (plain)
1
2
3
4
5
6
7
8
// RUN: %clang_cc1 -triple=x86_64-unknown-linux -emit-llvm %s -o - | FileCheck %s

struct bork {
  struct bork *next_local;
  char * query;
};
int offset =  (char *) &(((struct bork *) 0x10)->query) - (char *) 0x10;
// CHECK: @offset = global i32 8, align 4