[llvm-commits] [llvm] r64050 - /llvm/trunk/test/FrontendC++/2009-02-07-VolatileArrayRefHack.cpp

Chris Lattner sabre at nondot.org
Sat Feb 7 15:37:03 PST 2009


Author: lattner
Date: Sat Feb  7 17:37:03 2009
New Revision: 64050

URL: http://llvm.org/viewvc/llvm-project?rev=64050&view=rev
Log:
testcase for r64049 of llvm-gcc.

Added:
    llvm/trunk/test/FrontendC++/2009-02-07-VolatileArrayRefHack.cpp

Added: llvm/trunk/test/FrontendC++/2009-02-07-VolatileArrayRefHack.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/2009-02-07-VolatileArrayRefHack.cpp?rev=64050&view=auto

==============================================================================
--- llvm/trunk/test/FrontendC++/2009-02-07-VolatileArrayRefHack.cpp (added)
+++ llvm/trunk/test/FrontendC++/2009-02-07-VolatileArrayRefHack.cpp Sat Feb  7 17:37:03 2009
@@ -0,0 +1,7 @@
+// RUN: %llvmgxx -S %s -o - | grep {volatile load}
+// PR3320
+
+void test(volatile int *a) {
+    // should be a volatile load.
+    a[0];
+}





More information about the llvm-commits mailing list