diff options
author | Dan Gohman <gohman@apple.com> | 2009-09-11 18:01:28 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-09-11 18:01:28 +0000 |
commit | f2f6ce65b79df6ec4ee427d51a18355a170f199b (patch) | |
tree | 10febdb90407974203f9d08ab1180f7073ae459a /test/Transforms/Internalize | |
parent | 597f9797fd12bfede377de73ab89620842278105 (diff) | |
download | external_llvm-f2f6ce65b79df6ec4ee427d51a18355a170f199b.zip external_llvm-f2f6ce65b79df6ec4ee427d51a18355a170f199b.tar.gz external_llvm-f2f6ce65b79df6ec4ee427d51a18355a170f199b.tar.bz2 |
Change tests from "opt %s" to "opt < %s" so that opt doesn't see the
input filename so that opt doesn't print the input filename in the
output so that grep lines in the tests don't unintentionally match
strings in the input filename.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81537 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/Internalize')
-rw-r--r-- | test/Transforms/Internalize/2008-05-09-AllButMain.ll | 10 | ||||
-rw-r--r-- | test/Transforms/Internalize/2009-01-05-InternalizeAliases.ll | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/test/Transforms/Internalize/2008-05-09-AllButMain.ll b/test/Transforms/Internalize/2008-05-09-AllButMain.ll index 5464c37..a85e834 100644 --- a/test/Transforms/Internalize/2008-05-09-AllButMain.ll +++ b/test/Transforms/Internalize/2008-05-09-AllButMain.ll @@ -1,12 +1,12 @@ ; No arguments means internalize all but main -; RUN: opt %s -internalize -S | grep internal | count 4 +; RUN: opt < %s -internalize -S | grep internal | count 4 ; Internalize all but foo and j -; RUN: opt %s -internalize -internalize-public-api-list foo -internalize-public-api-list j -S | grep internal | count 3 +; RUN: opt < %s -internalize -internalize-public-api-list foo -internalize-public-api-list j -S | grep internal | count 3 ; Non existent files should be treated as if they were empty (so internalize all but main) -; RUN: opt %s -internalize -internalize-public-api-file /nonexistent/file 2> /dev/null -S | grep internal | count 4 -; RUN: opt %s -internalize -internalize-public-api-list bar -internalize-public-api-list foo -internalize-public-api-file /nonexistent/file 2> /dev/null -S | grep internal | count 3 +; RUN: opt < %s -internalize -internalize-public-api-file /nonexistent/file 2> /dev/null -S | grep internal | count 4 +; RUN: opt < %s -internalize -internalize-public-api-list bar -internalize-public-api-list foo -internalize-public-api-file /nonexistent/file 2> /dev/null -S | grep internal | count 3 ; -file and -list options should be merged, the .apifile contains foo and j -; RUN: opt %s -internalize -internalize-public-api-list bar -internalize-public-api-file %s.apifile -S | grep internal | count 2 +; RUN: opt < %s -internalize -internalize-public-api-list bar -internalize-public-api-file %s.apifile -S | grep internal | count 2 @i = weak global i32 0 ; <i32*> [#uses=0] @j = weak global i32 0 ; <i32*> [#uses=0] diff --git a/test/Transforms/Internalize/2009-01-05-InternalizeAliases.ll b/test/Transforms/Internalize/2009-01-05-InternalizeAliases.ll index 0f0dac1..7b18a04 100644 --- a/test/Transforms/Internalize/2009-01-05-InternalizeAliases.ll +++ b/test/Transforms/Internalize/2009-01-05-InternalizeAliases.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -internalize -S | grep internal | count 3 +; RUN: opt < %s -internalize -S | grep internal | count 3 @A = global i32 0 @B = alias i32* @A |