]> git.lizzy.rs Git - rust.git/blob - src/test/run-make-fulldeps/volatile-intrinsics/Makefile
Merge commit '39683d8eb7a32a74bea96ecbf1e87675d3338506' into sync_cg_gcc-2022-03-26
[rust.git] / src / test / run-make-fulldeps / volatile-intrinsics / Makefile
1 -include ../tools.mk
2
3 all:
4         # The tests must pass...
5         $(RUSTC) main.rs
6         $(call RUN,main)
7         # ... and the loads/stores must not be optimized out.
8         $(RUSTC) main.rs --emit=llvm-ir
9         $(CGREP) "load volatile" "store volatile" < $(TMPDIR)/main.ll