mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-02 06:28:20 +03:00
Add more tests. Remove unecessary attributes.
This commit is contained in:
+13
-4
@@ -1,9 +1,18 @@
|
||||
#![feature(custom_attribute, rustc_attrs)]
|
||||
#![feature(custom_attribute)]
|
||||
#![allow(dead_code, unused_attributes)]
|
||||
|
||||
#[rustc_mir]
|
||||
#[miri_run]
|
||||
fn foo() -> i32 {
|
||||
#[miri_run(expected = "Int(1)")]
|
||||
fn ret() -> i32 {
|
||||
1
|
||||
}
|
||||
|
||||
#[miri_run(expected = "Int(3)")]
|
||||
fn add() -> i32 {
|
||||
1 + 2
|
||||
}
|
||||
|
||||
#[miri_run(expected = "Int(3)")]
|
||||
fn indirect_add() -> i32 {
|
||||
let x = 1;
|
||||
let y = 2;
|
||||
x + y
|
||||
|
||||
Reference in New Issue
Block a user