diff options
| author | bors <bors@rust-lang.org> | 2023-11-23 06:41:15 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-11-23 06:41:15 +0000 |
| commit | 933bdbc5792cc770cf00ed119869b7e2d891f954 (patch) | |
| tree | 1210fbbb120a2831ec352128b5dadcf101659eed /tests/codegen | |
| parent | 41d7012a8e6c86adffc4fb431793dd5125b6af5f (diff) | |
| parent | 03f19ab7bb9453c45fadcad4097c4badc042689c (diff) | |
Auto merge of #3183 - rust-lang:rustup-2023-11-23, r=RalfJung
Automatic Rustup
Diffstat (limited to 'tests/codegen')
| -rw-r--r-- | tests/codegen/ehcontguard_disabled.rs | 10 | ||||
| -rw-r--r-- | tests/codegen/ehcontguard_enabled.rs | 10 |
2 files changed, 20 insertions, 0 deletions
diff --git a/tests/codegen/ehcontguard_disabled.rs b/tests/codegen/ehcontguard_disabled.rs new file mode 100644 index 00000000000..7773384e5ea --- /dev/null +++ b/tests/codegen/ehcontguard_disabled.rs @@ -0,0 +1,10 @@ +// compile-flags: + +#![crate_type = "lib"] + +// A basic test function. +pub fn test() { +} + +// Ensure the module flag ehcontguard is not present +// CHECK-NOT: !"ehcontguard" diff --git a/tests/codegen/ehcontguard_enabled.rs b/tests/codegen/ehcontguard_enabled.rs new file mode 100644 index 00000000000..03aaa342b96 --- /dev/null +++ b/tests/codegen/ehcontguard_enabled.rs @@ -0,0 +1,10 @@ +// compile-flags: -Z ehcont-guard + +#![crate_type = "lib"] + +// A basic test function. +pub fn test() { +} + +// Ensure the module flag ehcontguard=1 is present +// CHECK: !"ehcontguard", i32 1 |
