diff options
Diffstat (limited to 'tests/codegen/debug-alignment.rs')
-rw-r--r-- | tests/codegen/debug-alignment.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/codegen/debug-alignment.rs b/tests/codegen/debug-alignment.rs new file mode 100644 index 000000000..f6c1062e0 --- /dev/null +++ b/tests/codegen/debug-alignment.rs @@ -0,0 +1,8 @@ +// Verifies that DWARF alignment is specified properly. +// +// compile-flags: -C debuginfo=2 +#![crate_type = "lib"] + +// CHECK: !DIGlobalVariable +// CHECK: align: 32 +pub static A: u32 = 1; |