diff --git a/test/CodeGen/CBackend/2005-02-14-VolatileOperations.ll b/test/CodeGen/CBackend/2005-02-14-VolatileOperations.ll new file mode 100644 index 00000000000..b6089d1d19a --- /dev/null +++ b/test/CodeGen/CBackend/2005-02-14-VolatileOperations.ll @@ -0,0 +1,7 @@ +; RUN: llvm-as < %s | llc -march=c | grep volatile + +void %test(int* %P) { + %X = volatile load int*%P + volatile store int %X, int* %P + ret void +}