summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-10-03 05:29:07 +0000
committerChris Lattner <sabre@nondot.org>2007-10-03 05:29:07 +0000
commitb511029eaff0cbd7c65906d8957ec4c0ae89bd95 (patch)
treee997f67fc6198974c3c7aa10ae9607f8c759fafb
parentd66e0cd6c0299a6a45a1c7a6a27967b484fdbb18 (diff)
downloadbcm5719-llvm-b511029eaff0cbd7c65906d8957ec4c0ae89bd95.tar.gz
bcm5719-llvm-b511029eaff0cbd7c65906d8957ec4c0ae89bd95.zip
testcase for PR1647
llvm-svn: 42570
-rw-r--r--llvm/test/CFrontend/2007-10-02-VolatileArray.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/CFrontend/2007-10-02-VolatileArray.c b/llvm/test/CFrontend/2007-10-02-VolatileArray.c
new file mode 100644
index 00000000000..7e8bf24a84b
--- /dev/null
+++ b/llvm/test/CFrontend/2007-10-02-VolatileArray.c
@@ -0,0 +1,7 @@
+// RUN: %llvmgcc -S %s -o - | grep volatile
+// PR1647
+
+void foo(volatile int *p)
+{
+p[0] = 0;
+}
OpenPOWER on IntegriCloud