rust/src/test/codegen/cfguard_disabled.rs
Andrew Paverd c0744e1e0c Add support for Control Flow Guard on Windows.
This patch enables rustc to emit the required LLVM module flags to enable Control Flow Guard metadata (cfguard=1) or metadata and checks (cfguard=2). The LLVM module flags are ignored on unsupported targets and operating systems.
2020-01-28 14:43:23 +00:00

10 lines
193 B
Rust

// compile-flags: -Z control_flow_guard=disabled
#![crate_type = "lib"]
// A basic test function.
pub fn test() {
}
// Ensure the module flag cfguard is not present
// CHECK-NOT: !"cfguard"