diff options
Diffstat (limited to 'tests/codegen/cfguard-disabled.rs')
-rw-r--r-- | tests/codegen/cfguard-disabled.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/codegen/cfguard-disabled.rs b/tests/codegen/cfguard-disabled.rs new file mode 100644 index 000000000..c3f8f4116 --- /dev/null +++ b/tests/codegen/cfguard-disabled.rs @@ -0,0 +1,11 @@ +// compile-flags: -C control-flow-guard=no +// only-msvc + +#![crate_type = "lib"] + +// A basic test function. +pub fn test() { +} + +// Ensure the module flag cfguard is not present +// CHECK-NOT: !"cfguard" |