diff options
-rw-r--r-- | llvm/test/C++Frontend/2008-05-07-CrazyOffsetOf.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/C++Frontend/2008-05-07-CrazyOffsetOf.cpp b/llvm/test/C++Frontend/2008-05-07-CrazyOffsetOf.cpp new file mode 100644 index 00000000000..f1831976f4e --- /dev/null +++ b/llvm/test/C++Frontend/2008-05-07-CrazyOffsetOf.cpp @@ -0,0 +1,8 @@ +// RUN: %llvmgxx -S %s -o - +// rdar://5914926 + +struct bork { + struct bork *next_local; + char * query; +}; +int offset = (char *) &(((struct bork *) 0x10)->query) - (char *) 0x10; |