Re-commit r257064, this time with a fixed assert
[oota-llvm.git] / test / Transforms / GlobalDCE / externally_available.ll
1 ; RUN: opt < %s -globaldce -S | not grep test_
2
3 ; test_function should not be emitted to the .s file.
4 define available_externally i32 @test_function() {
5   ret i32 4
6 }
7
8 ; test_global should not be emitted to the .s file.
9 @test_global = available_externally global i32 4
10