Skip to content

Commit 8a8493a

Browse files
committed
Add opt-level=s and opt-level=z tests to the existing tests that confirm proper
compiler of other opt-levels.
1 parent b1337d3 commit 8a8493a

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/test/run-make/debug-assertions/Makefile

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ all:
1111
$(call RUN,debug) good
1212
$(RUSTC) debug.rs -C opt-level=3
1313
$(call RUN,debug) good
14+
$(RUSTC) debug.rs -C opt-level=s
15+
$(call RUN,debug) good
16+
$(RUSTC) debug.rs -C opt-level=z
17+
$(call RUN,debug) good
1418
$(RUSTC) debug.rs -O
1519
$(call RUN,debug) good
1620
$(RUSTC) debug.rs

src/test/run-make/emit/Makefile

+6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ all:
55
$(RUSTC) -Copt-level=1 --emit=llvm-bc,llvm-ir,asm,obj,link test-24876.rs
66
$(RUSTC) -Copt-level=2 --emit=llvm-bc,llvm-ir,asm,obj,link test-24876.rs
77
$(RUSTC) -Copt-level=3 --emit=llvm-bc,llvm-ir,asm,obj,link test-24876.rs
8+
$(RUSTC) -Copt-level=s --emit=llvm-bc,llvm-ir,asm,obj,link test-24876.rs
9+
$(RUSTC) -Copt-level=z --emit=llvm-bc,llvm-ir,asm,obj,link test-24876.rs
810
$(RUSTC) -Copt-level=0 --emit=llvm-bc,llvm-ir,asm,obj,link test-26235.rs
911
$(call RUN,test-26235) || exit 1
1012
$(RUSTC) -Copt-level=1 --emit=llvm-bc,llvm-ir,asm,obj,link test-26235.rs
@@ -13,3 +15,7 @@ all:
1315
$(call RUN,test-26235) || exit 1
1416
$(RUSTC) -Copt-level=3 --emit=llvm-bc,llvm-ir,asm,obj,link test-26235.rs
1517
$(call RUN,test-26235) || exit 1
18+
$(RUSTC) -Copt-level=s --emit=llvm-bc,llvm-ir,asm,obj,link test-26235.rs
19+
$(call RUN,test-26235) || exit 1
20+
$(RUSTC) -Copt-level=z --emit=llvm-bc,llvm-ir,asm,obj,link test-26235.rs
21+
$(call RUN,test-26235) || exit 1

0 commit comments

Comments
 (0)