diff options
Diffstat (limited to 'test/Transforms/GlobalDCE/externally_available.ll')
-rw-r--r-- | test/Transforms/GlobalDCE/externally_available.ll | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/Transforms/GlobalDCE/externally_available.ll b/test/Transforms/GlobalDCE/externally_available.ll index cc88cb10dcc6..fca49b29ec8e 100644 --- a/test/Transforms/GlobalDCE/externally_available.ll +++ b/test/Transforms/GlobalDCE/externally_available.ll @@ -1,10 +1,12 @@ -; RUN: opt < %s -globaldce -S | not grep test_ +; RUN: opt < %s -globaldce -S | FileCheck %s ; test_function should not be emitted to the .s file. +; CHECK-NOT: test_function define available_externally i32 @test_function() { ret i32 4 } ; test_global should not be emitted to the .s file. +; CHECK-NOT: test_global @test_global = available_externally global i32 4 |