Skip to content

Commit 20cccfa

Browse files
committed
Change tests per RFC 246 (const vs static)
1 parent 5180a7c commit 20cccfa

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

src/test/auxiliary/sepcomp_cci_lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,4 @@ pub fn cci_fn() -> usize {
1313
1200
1414
}
1515

16-
#[inline]
17-
pub static CCI_STATIC: usize = 34;
16+
pub const CCI_CONST: usize = 34;

src/test/auxiliary/xcrate_static_addresses.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,10 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#[inline(never)]
1211
pub static global: isize = 3;
1312

14-
#[inline(never)]
1513
static global0: isize = 4;
1614

17-
#[inline(never)]
1815
pub static global2: &'static isize = &global0;
1916

2017
pub fn verify_same(a: &'static isize) {

src/test/run-pass/sepcomp-cci.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,23 @@
1616

1717

1818
extern crate sepcomp_cci_lib;
19-
use sepcomp_cci_lib::{cci_fn, CCI_STATIC};
19+
use sepcomp_cci_lib::{cci_fn, CCI_CONST};
2020

2121
fn call1() -> usize {
22-
cci_fn() + CCI_STATIC
22+
cci_fn() + CCI_CONST
2323
}
2424

2525
mod a {
26-
use sepcomp_cci_lib::{cci_fn, CCI_STATIC};
26+
use sepcomp_cci_lib::{cci_fn, CCI_CONST};
2727
pub fn call2() -> usize {
28-
cci_fn() + CCI_STATIC
28+
cci_fn() + CCI_CONST
2929
}
3030
}
3131

3232
mod b {
33-
use sepcomp_cci_lib::{cci_fn, CCI_STATIC};
33+
use sepcomp_cci_lib::{cci_fn, CCI_CONST};
3434
pub fn call3() -> usize {
35-
cci_fn() + CCI_STATIC
35+
cci_fn() + CCI_CONST
3636
}
3737
}
3838

0 commit comments

Comments
 (0)