llvm-mirror/test/C++Frontend/2008-05-07-CrazyOffsetOf.cpp
Chris Lattner 9bf499a8b9 new testcase.
llvm-svn: 50841
2008-05-08 04:55:51 +00:00

9 lines
180 B
C++

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