new testcase.
authorChris Lattner <sabre@nondot.org>
Thu, 8 May 2008 04:55:51 +0000 (04:55 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 8 May 2008 04:55:51 +0000 (04:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50841 91177308-0d34-0410-b5e6-96231b3b80d8

test/C++Frontend/2008-05-07-CrazyOffsetOf.cpp [new file with mode: 0644]

diff --git a/test/C++Frontend/2008-05-07-CrazyOffsetOf.cpp b/test/C++Frontend/2008-05-07-CrazyOffsetOf.cpp
new file mode 100644 (file)
index 0000000..f183197
--- /dev/null
@@ -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;