diff options
Diffstat (limited to 'tests/codegen/align-fn.rs')
-rw-r--r-- | tests/codegen/align-fn.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/codegen/align-fn.rs b/tests/codegen/align-fn.rs new file mode 100644 index 000000000..c5886cf28 --- /dev/null +++ b/tests/codegen/align-fn.rs @@ -0,0 +1,9 @@ +// compile-flags: -C no-prepopulate-passes -Z mir-opt-level=0 + +#![crate_type = "lib"] +#![feature(fn_align)] + +// CHECK: align 16 +#[no_mangle] +#[repr(align(16))] +pub fn fn_align() {} |