summaryrefslogtreecommitdiffstats
path: root/llvm/test/C++Frontend
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-05-08 04:55:51 +0000
committerChris Lattner <sabre@nondot.org>2008-05-08 04:55:51 +0000
commitd93ff087bab9f669c36b361008b973e99d663eb7 (patch)
treedd3328b0bc0361cd2b843f90e7169d2362785cac /llvm/test/C++Frontend
parentf4b42f545b77a81f5db3af7b84131a77a1d2aae3 (diff)
downloadbcm5719-llvm-d93ff087bab9f669c36b361008b973e99d663eb7.tar.gz
bcm5719-llvm-d93ff087bab9f669c36b361008b973e99d663eb7.zip
new testcase.
llvm-svn: 50841
Diffstat (limited to 'llvm/test/C++Frontend')
-rw-r--r--llvm/test/C++Frontend/2008-05-07-CrazyOffsetOf.cpp8
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;
OpenPOWER on IntegriCloud