summaryrefslogtreecommitdiffstats
path: root/tests/run-make/volatile-intrinsics/Makefile
blob: 5672a045873dd684b53e3974bb9e0c40650d763f (plain)
1
2
3
4
5
6
7
8
9
10
# ignore-cross-compile
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