summaryrefslogtreecommitdiffstats
path: root/tests/run-make-fulldeps/volatile-intrinsics/Makefile
blob: 2a78c7b9cfe174859ac2adc7d3267efc647d5ff6 (plain)
1
2
3
4
5
6
7
8
9
include ../tools.mk

all:
	# The tests must pass...
	$(RUSTC) main.rs
	$(call RUN,main)
	# ... and the loads/stores must not be optimized out.
	$(RUSTC) main.rs --emit=llvm-ir
	$(CGREP) "load volatile" "store volatile" < $(TMPDIR)/main.ll