about summary refs log tree commit diff
path: root/src/test/codegen/cfguard_checks.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/codegen/cfguard_checks.rs')
-rw-r--r--src/test/codegen/cfguard_checks.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/codegen/cfguard_checks.rs b/src/test/codegen/cfguard_checks.rs
new file mode 100644
index 00000000000..40a7353eac0
--- /dev/null
+++ b/src/test/codegen/cfguard_checks.rs
@@ -0,0 +1,10 @@
+// compile-flags: -Z control_flow_guard=checks
+
+#![crate_type = "lib"]
+
+// A basic test function.
+pub fn test() {
+}
+
+// Ensure the module flag cfguard=2 is present
+// CHECK: !"cfguard", i32 2