about summary refs log tree commit diff
path: root/src/test/codegen/function-arguments.rs
diff options
context:
space:
mode:
authorRichard Diamond <wichard@vitalitystudios.com>2015-09-15 16:22:16 -0500
committerRichard Diamond <wichard@vitalitystudios.com>2015-09-21 15:43:52 -0500
commit9a2402566102dd54c66f55a62da93e1c7d93f761 (patch)
tree8ad705d759548751418b982a6987e7870af4f889 /src/test/codegen/function-arguments.rs
parent5120f4a3f95f6695c711839b3cc8551303bee0e3 (diff)
downloadrust-9a2402566102dd54c66f55a62da93e1c7d93f761.tar.gz
rust-9a2402566102dd54c66f55a62da93e1c7d93f761.zip
Avoid loading the whole gdb debug scripts section.
This is so LLVM isn't forced to load every byte of it. Also sets the alignment of
the load. Adds a test for the debug script section.
Diffstat (limited to 'src/test/codegen/function-arguments.rs')
-rw-r--r--src/test/codegen/function-arguments.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/codegen/function-arguments.rs b/src/test/codegen/function-arguments.rs
index 7706c97380b..90ced88324e 100644
--- a/src/test/codegen/function-arguments.rs
+++ b/src/test/codegen/function-arguments.rs
@@ -10,6 +10,7 @@
 
 // compile-flags: -C no-prepopulate-passes
 
+#![crate_type = "lib"]
 #![feature(allocator)]
 
 pub struct S {