Skip to content

Commit

Permalink
Add regression test for issue #17252
Browse files Browse the repository at this point in the history
  • Loading branch information
bkoropoff committed Sep 15, 2014
1 parent 83b7cb7 commit 0818955
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/test/compile-fail/issue-17252.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// Copyright 2014 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.

static FOO: uint = FOO; //~ ERROR recursive constant

fn main() {
let _x: [u8, ..FOO]; // caused stack overflow prior to fix
let _y: uint = 1 + {
static BAR: uint = BAR; //~ ERROR recursive constant
let _z: [u8, ..BAR]; // caused stack overflow prior to fix
1
};
}

6 comments on commit 0818955

@nrc
Copy link
Member

@nrc nrc commented on 0818955 Sep 15, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r+

@bors
Copy link
Contributor

@bors bors commented on 0818955 Sep 17, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from nick29581
at bkoropoff@0818955

@bors
Copy link
Contributor

@bors bors commented on 0818955 Sep 17, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging bkoropoff/rust/issue-17252 = 0818955 into auto

@bors
Copy link
Contributor

@bors bors commented on 0818955 Sep 17, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bkoropoff/rust/issue-17252 = 0818955 merged ok, testing candidate = ad9ed40

@bors
Copy link
Contributor

@bors bors commented on 0818955 Sep 17, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 0818955 Sep 17, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = ad9ed40

Please sign in to comment.