mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 15:17:25 +00:00
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
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user