new testcase that crashes opt
[oota-llvm.git] / test / Transforms / GCSE / 2003-06-13-LoadStoreEliminate.ll
1 ; This testcase shows a bug where an common subexpression exists, but there
2 ; is no shared dominator block that the expression can be hoisted out to.
3 ;
4 ; RUN: as < %s | opt -load-vn -gcse | dis | not grep load
5
6 int %test(int* %P) {
7         store int 5, int* %P
8         %Z = load int* %P
9         ret int %Z
10 }
11