1; No arguments means internalize all but main 2; RUN: opt < %s -internalize -S | grep internal | count 4 3; Internalize all but foo and j 4; RUN: opt < %s -internalize -internalize-public-api-list foo -internalize-public-api-list j -S | grep internal | count 3 5; Non existent files should be treated as if they were empty (so internalize all but main) 6; RUN: opt < %s -internalize -internalize-public-api-file /nonexistent/file 2> /dev/null -S | grep internal | count 4 7; 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 8; -file and -list options should be merged, the .apifile contains foo and j 9; RUN: opt < %s -internalize -internalize-public-api-list bar -internalize-public-api-file %s.apifile -S | grep internal | count 2 10 11@i = weak global i32 0 ; <i32*> [#uses=0] 12@j = weak global i32 0 ; <i32*> [#uses=0] 13 14define void @main(...) { 15entry: 16 ret void 17} 18 19define void @foo(...) { 20entry: 21 ret void 22} 23 24define void @bar(...) { 25entry: 26 ret void 27} 28