From: Chris Lattner Date: Thu, 8 May 2008 04:55:51 +0000 (+0000) Subject: new testcase. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8c073c04bc598cf6cb55620ce83f7afbdf0e7920;p=oota-llvm.git new testcase. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50841 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/C++Frontend/2008-05-07-CrazyOffsetOf.cpp b/test/C++Frontend/2008-05-07-CrazyOffsetOf.cpp new file mode 100644 index 00000000000..f1831976f4e --- /dev/null +++ b/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;