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