llvm.org GIT mirror llvm / ef30c1d
Add testcase for prev. commit. Minor fixes git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48686 91177308-0d34-0410-b5e6-96231b3b80d8 Anton Korobeynikov 12 years ago
2 changed file(s) with 8 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
378378 }
379379
380380 const GlobalValue* Aliasee = GA.resolveAliasedGlobal();
381 const GlobalValue* Aliasee = GA.resolveAliasedGlobal();
381382 Assert1(Aliasee,
382 "Aliasing chain should end with global function or global variable",
383 &GA);
383 "Aliasing chain should end with function or global variable", &GA);
384384
385385 visitGlobalValue(GA);
386386 }
0 ; RUN: not llvm-as -f %s -o /dev/null |& grep {Aliasing chain should end with function or global variable}
1
2 ; Test that alising chain does not create a cycle
3
4 @b1 = alias i32* @c1
5 @c1 = alias i32* @b1