2008-05-07-CrazyOffsetOf.cpp 190 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 // RUN: %clang_cc1 -emit-llvm %s -o - // rdar://5914926 struct bork { struct bork *next_local; char * query; }; int offset = (char *) &(((struct bork *) 0x10)->query) - (char *) 0x10;