blob: 3382188f4bbe66d4f9b1eba8454961c780418dff [file] [log] [blame]
Dan Gohman50f424c2010-06-28 21:16:52 +00001; RUN: opt -aa-eval -disable-output < %s >& /dev/null
2
3; BasicAA shouldn't infinitely recurse on the use-def cycles in
4; unreachable code.
5
6define void @func_2() nounwind {
7entry:
8 unreachable
9
10bb:
11 %t = select i1 undef, i32* %t, i32* undef
12 %p = select i1 undef, i32* %p, i32* %p
13 %q = select i1 undef, i32* undef, i32* %p
14 %a = getelementptr i8* %a, i32 0
15 unreachable
16}