From: Chris Lattner Date: Mon, 2 Jun 2003 03:07:54 +0000 (+0000) Subject: Testcase distilled from 255.vortex X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=71799cda17efb2ce9e2d497964b1f6d5a9413ef0;p=oota-llvm.git Testcase distilled from 255.vortex git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6525 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CBackend/2003-06-01-NullPointerType.ll b/test/CBackend/2003-06-01-NullPointerType.ll new file mode 100644 index 00000000000..31219230f3a --- /dev/null +++ b/test/CBackend/2003-06-01-NullPointerType.ll @@ -0,0 +1,7 @@ + +%X = type { int, float } + +void %test() { + getelementptr %X* null, long 0, ubyte 1 + ret void +} diff --git a/test/CodeGen/CBackend/2003-06-01-NullPointerType.ll b/test/CodeGen/CBackend/2003-06-01-NullPointerType.ll new file mode 100644 index 00000000000..31219230f3a --- /dev/null +++ b/test/CodeGen/CBackend/2003-06-01-NullPointerType.ll @@ -0,0 +1,7 @@ + +%X = type { int, float } + +void %test() { + getelementptr %X* null, long 0, ubyte 1 + ret void +}