mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +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() {}
|