summary refs log tree commit diff
path: root/src/test/run-make/sanitizer-memory/Makefile
blob: f3a896cd4ab9d85e825e4ae7a1861e126cfa27d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
-include ../tools.mk

all:
ifeq ($(TARGET),x86_64-unknown-linux-gnu)
ifdef SANITIZER_SUPPORT
	$(RUSTC) -g -Z sanitizer=memory -Z print-link-args uninit.rs | tee $(TMPDIR)/out
	grep -q librustc_msan $(TMPDIR)/out
	$(TMPDIR)/uninit 2>&1 | tee $(TMPDIR)/out
	grep -q use-of-uninitialized-value $(TMPDIR)/out
endif
endif