()
| 152 | |
| 153 | #[test] |
| 154 | fn linker_flags() { |
| 155 | let output = compile( |
| 156 | &[ |
| 157 | "-Clink-arg=--max-memory=65536", |
| 158 | "-Clink-arg=-zstack-size=32", |
| 159 | "-Clink-arg=--global-base=2048", |
| 160 | "-Clink-arg=--append-lld-flag=--no-merge-data-segments", |
| 161 | ], |
| 162 | r#" |
| 163 | fn main() { |
| 164 | } |
| 165 | "#, |
| 166 | ); |
| 167 | assert_component(&output); |
| 168 | |
| 169 | let output = compile( |
| 170 | &[ |
| 171 | "-Clink-arg=--max-memory=65536", |
| 172 | "-Clink-arg=-zstack-size=32", |
| 173 | "-Clink-arg=--global-base=2048", |
| 174 | "-Clink-arg=--append-lld-flag=--no-merge-data-segments", |
| 175 | "-Clink-arg=-allow-multiple-definition", |
| 176 | "-Clink-arg=-soname", |
| 177 | "-Clink-arg=foo", |
| 178 | ], |
| 179 | r#" |
| 180 | fn main() { |
| 181 | } |
| 182 | "#, |
| 183 | ); |
| 184 | assert_component(&output); |
| 185 | } |
| 186 | |
| 187 | #[test] |
| 188 | fn invalid_lld_flag() { |
nothing calls this directly
no test coverage detected