Skip to content

Commit fd7bc59

Browse files
committed
Port argument-non-c-like-enum to Rust
1 parent 142d02d commit fd7bc59

File tree

2 files changed

+20
-8
lines changed

2 files changed

+20
-8
lines changed

tests/run-make/arguments-non-c-like-enum/Makefile

-8
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
//! Check that non-trivial `repr(C)` enum in Rust has valid C layout.
2+
//@ ignore-cross-compile
3+
4+
extern crate run_make_support;
5+
6+
use run_make_support::{cc, extra_c_flags, extra_cxx_flags, run, rustc, static_lib};
7+
8+
pub fn main() {
9+
use std::path::Path;
10+
11+
rustc().input("nonclike.rs").crate_type("staticlib").run();
12+
cc().input("test.c")
13+
.input(static_lib("nonclike"))
14+
.out_exe("test")
15+
.args(&extra_c_flags())
16+
.args(&extra_cxx_flags())
17+
.inspect(|cmd| eprintln!("{cmd:?}"))
18+
.run();
19+
run("test");
20+
}

0 commit comments

Comments
 (0)