From f7f04098ce84d4955c6d20b55223c57611300b05 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 21 Mar 2002 03:01:14 +0000 Subject: [PATCH] New testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1920 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../LevelRaise/2002-03-20-BadCodegen.ll | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 test/Transforms/LevelRaise/2002-03-20-BadCodegen.ll diff --git a/test/Transforms/LevelRaise/2002-03-20-BadCodegen.ll b/test/Transforms/LevelRaise/2002-03-20-BadCodegen.ll new file mode 100644 index 00000000000..84f05058721 --- /dev/null +++ b/test/Transforms/LevelRaise/2002-03-20-BadCodegen.ll @@ -0,0 +1,54 @@ +; This testcase tests whether the raise pass generates bad code for a +; getelementptr instruction... with a bad level raise pass, this code +; will segfault on execution. +; +; RUN: as < %s | opt -raise |lli -abort-on-exception + + %Village = type { [4 x \3 *], \2 *, { \2 *, { int, int, int, \5 * } *, \2 * }, { int, int, int, { \2 *, { int, int, int, \6 * } *, \2 * }, { \2 *, { int, int, + int, \6 * } *, \2 * }, { \2 *, { int, int, int, \6 * } *, \2 * }, { \2 *, { int, int, int, \6 * } *, \2 * } }, int, int } + + + +implementation + +void "foo"(%Village *%V) +begin + ret void +end + +void "main"(int %argc, sbyte **%argv) +begin +;