about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBrandon Edens <brandonedens@gmail.com>2016-03-27 23:04:15 -0700
committerBrandon Edens <brandonedens@gmail.com>2016-04-28 23:08:30 -0700
commit8a8493a56593c6082b302d00f55232953dc7db47 (patch)
treec9007e0e19ae6e88019e4ba793c4d82577b2eea8
parentb1337d309a67e34c1452b4a9a378a23dbd8b3573 (diff)
downloadrust-8a8493a56593c6082b302d00f55232953dc7db47.tar.gz
rust-8a8493a56593c6082b302d00f55232953dc7db47.zip
Add opt-level=s and opt-level=z tests to the existing tests that confirm proper
compiler of other opt-levels.
-rw-r--r--src/test/run-make/debug-assertions/Makefile4
-rw-r--r--src/test/run-make/emit/Makefile6
2 files changed, 10 insertions, 0 deletions
diff --git a/src/test/run-make/debug-assertions/Makefile b/src/test/run-make/debug-assertions/Makefile
index 71297562768..76ada90f1e2 100644
--- a/src/test/run-make/debug-assertions/Makefile
+++ b/src/test/run-make/debug-assertions/Makefile
@@ -11,6 +11,10 @@ all:
 	$(call RUN,debug) good
 	$(RUSTC) debug.rs -C opt-level=3
 	$(call RUN,debug) good
+	$(RUSTC) debug.rs -C opt-level=s
+	$(call RUN,debug) good
+	$(RUSTC) debug.rs -C opt-level=z
+	$(call RUN,debug) good
 	$(RUSTC) debug.rs -O
 	$(call RUN,debug) good
 	$(RUSTC) debug.rs
diff --git a/src/test/run-make/emit/Makefile b/src/test/run-make/emit/Makefile
index be34028fe1d..e0b57107e5b 100644
--- a/src/test/run-make/emit/Makefile
+++ b/src/test/run-make/emit/Makefile
@@ -5,6 +5,8 @@ all:
 	$(RUSTC) -Copt-level=1 --emit=llvm-bc,llvm-ir,asm,obj,link test-24876.rs
 	$(RUSTC) -Copt-level=2 --emit=llvm-bc,llvm-ir,asm,obj,link test-24876.rs
 	$(RUSTC) -Copt-level=3 --emit=llvm-bc,llvm-ir,asm,obj,link test-24876.rs
+	$(RUSTC) -Copt-level=s --emit=llvm-bc,llvm-ir,asm,obj,link test-24876.rs
+	$(RUSTC) -Copt-level=z --emit=llvm-bc,llvm-ir,asm,obj,link test-24876.rs
 	$(RUSTC) -Copt-level=0 --emit=llvm-bc,llvm-ir,asm,obj,link test-26235.rs
 	$(call RUN,test-26235) || exit 1
 	$(RUSTC) -Copt-level=1 --emit=llvm-bc,llvm-ir,asm,obj,link test-26235.rs
@@ -13,3 +15,7 @@ all:
 	$(call RUN,test-26235) || exit 1
 	$(RUSTC) -Copt-level=3 --emit=llvm-bc,llvm-ir,asm,obj,link test-26235.rs
 	$(call RUN,test-26235) || exit 1
+	$(RUSTC) -Copt-level=s --emit=llvm-bc,llvm-ir,asm,obj,link test-26235.rs
+	$(call RUN,test-26235) || exit 1
+	$(RUSTC) -Copt-level=z --emit=llvm-bc,llvm-ir,asm,obj,link test-26235.rs
+	$(call RUN,test-26235) || exit 1