diff options
| author | bors <bors@rust-lang.org> | 2018-02-07 17:51:52 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-02-07 17:51:52 +0000 |
| commit | 29c8276cee4a0eab7e0634ff25c6b47bd9f87c6c (patch) | |
| tree | aabb7278f081c3c90cea9e0337779739805408a9 /src/test/codegen | |
| parent | fee39ba8bd98f5b93c60de51336830fa7f0b9d97 (diff) | |
| parent | 732c83007c9069c6dd33a5dc98e62337dca014bd (diff) | |
| download | rust-29c8276cee4a0eab7e0634ff25c6b47bd9f87c6c.tar.gz rust-29c8276cee4a0eab7e0634ff25c6b47bd9f87c6c.zip | |
Auto merge of #48053 - Manishearth:rollup, r=Manishearth
Rollup of 10 pull requests - Successful merges: #47613, #47631, #47810, #47883, #47922, #47944, #48014, #48018, #48020, #48028 - Failed merges:
Diffstat (limited to 'src/test/codegen')
| -rw-r--r-- | src/test/codegen/repeat-trusted-len.rs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/test/codegen/repeat-trusted-len.rs b/src/test/codegen/repeat-trusted-len.rs new file mode 100644 index 00000000000..43872f15d51 --- /dev/null +++ b/src/test/codegen/repeat-trusted-len.rs @@ -0,0 +1,23 @@ +// Copyright 2018 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or +// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +// compile-flags: -O +// ignore-tidy-linelength + +#![crate_type = "lib"] + +use std::iter; + +// CHECK-LABEL: @repeat_take_collect +#[no_mangle] +pub fn repeat_take_collect() -> Vec<u8> { +// CHECK: call void @llvm.memset.p0i8 + iter::repeat(42).take(100000).collect() +} |
