[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGenCXX / 2008-05-07-CrazyOffsetOf.cpp
blob6967df9d94e0ec5818d0baf044ddcfacc7689fdf
1 // RUN: %clang_cc1 -triple=x86_64-unknown-linux -emit-llvm %s -o - | FileCheck %s
2 // rdar://5914926
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