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 +;