llvm-6502/test/FrontendC++/2008-05-07-CrazyOffsetOf.cpp

9 lines
180 B
C++
Raw Normal View History

// RUN: %llvmgxx -S %s -o -
// rdar://5914926
struct bork {
struct bork *next_local;
char * query;
};
int offset = (char *) &(((struct bork *) 0x10)->query) - (char *) 0x10;