OSDN Git Service

testcase for r64049 of llvm-gcc.
authorChris Lattner <sabre@nondot.org>
Sat, 7 Feb 2009 23:37:03 +0000 (23:37 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 7 Feb 2009 23:37:03 +0000 (23:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64050 91177308-0d34-0410-b5e6-96231b3b80d8

test/FrontendC++/2009-02-07-VolatileArrayRefHack.cpp [new file with mode: 0644]

diff --git a/test/FrontendC++/2009-02-07-VolatileArrayRefHack.cpp b/test/FrontendC++/2009-02-07-VolatileArrayRefHack.cpp
new file mode 100644 (file)
index 0000000..b8589b0
--- /dev/null
@@ -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];
+}