commit | bf041e30384ed53b62584f4f459c8f0c3dccef5f | [log] [tgz] |
---|---|---|
author | Will Dietz <wdietz2@illinois.edu> | Fri May 22 21:54:42 2015 +0000 |
committer | Will Dietz <wdietz2@illinois.edu> | Fri May 22 21:54:42 2015 +0000 |
tree | ce313ec1f868e474f99dd84e951f04ab76c26bb7 | |
parent | c2f014d22875f95afd820446966b55979923b58a [diff] |
Add callgraph tests for behavior when main is addr-taken or not. The two tests have almost identical IR, except DSA correctly reports callgraph for one but not the other. The issue is related to DSA behavior when main is addr-taken (addrtaken_main); the correct callgraph is reported when 'main' is renamed to 'main2' and invoked from a new simple wrapper 'main' (addrtaken_caller). Tests derived from example submitted by Victor van der Veen. (Thanks!) llvm-svn: 238057