diff options
author | Chris Lattner <sabre@nondot.org> | 2008-05-08 04:55:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-05-08 04:55:51 +0000 |
commit | 8c073c04bc598cf6cb55620ce83f7afbdf0e7920 (patch) | |
tree | 9312e8524420dc0785764d61f940124fd7c2774f /test | |
parent | 268e7d7a9446bb89b80472cdb7b9803f16c0191e (diff) | |
download | external_llvm-8c073c04bc598cf6cb55620ce83f7afbdf0e7920.zip external_llvm-8c073c04bc598cf6cb55620ce83f7afbdf0e7920.tar.gz external_llvm-8c073c04bc598cf6cb55620ce83f7afbdf0e7920.tar.bz2 |
new testcase.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50841 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/C++Frontend/2008-05-07-CrazyOffsetOf.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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 0000000..f183197 --- /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; |