diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/run-make-fulldeps/volatile-intrinsics/Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/run-make-fulldeps/volatile-intrinsics/Makefile b/src/test/run-make-fulldeps/volatile-intrinsics/Makefile new file mode 100644 index 000000000..acbadbef9 --- /dev/null +++ b/src/test/run-make-fulldeps/volatile-intrinsics/Makefile @@ -0,0 +1,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 |