mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-12 16:45:37 +00:00
16 lines
466 B
Rust
16 lines
466 B
Rust
|
// Verifies that the `!llvm.ident` named metadata is emitted.
|
||
|
//
|
||
|
// revisions: NONE OPT DEBUG
|
||
|
//
|
||
|
// [OPT] compile-flags: -Copt-level=2
|
||
|
// [DEBUG] compile-flags: -Cdebuginfo=2
|
||
|
|
||
|
// The named metadata should contain a single metadata node (see
|
||
|
// `LLVMRustPrepareThinLTOImport` for details).
|
||
|
// CHECK: !llvm.ident = !{![[ID:[0-9]+]]}
|
||
|
|
||
|
// In addition, check that the metadata node has the expected content.
|
||
|
// CHECK: ![[ID]] = !{!"rustc version 1.{{.*}}"}
|
||
|
|
||
|
fn main() {}
|