2023-03-30 08:46:31 -05:00
|
|
|
# ignore-cross-compile
|
2022-08-22 19:00:00 -05:00
|
|
|
include ../tools.mk
|
2018-07-09 13:01:10 -05:00
|
|
|
|
|
|
|
all:
|
|
|
|
$(RUSTC) success.rs; [ $$? -eq 0 ]
|
|
|
|
$(RUSTC) --invalid-arg-foo; [ $$? -eq 1 ]
|
|
|
|
$(RUSTC) compile-error.rs; [ $$? -eq 1 ]
|
|
|
|
$(RUSTC) -Ztreat-err-as-bug compile-error.rs; [ $$? -eq 101 ]
|
|
|
|
$(RUSTDOC) -o $(TMPDIR)/exit-code success.rs; [ $$? -eq 0 ]
|
|
|
|
$(RUSTDOC) --invalid-arg-foo; [ $$? -eq 1 ]
|
|
|
|
$(RUSTDOC) compile-error.rs; [ $$? -eq 1 ]
|
|
|
|
$(RUSTDOC) lint-failure.rs; [ $$? -eq 1 ]
|