From 009b1c42aa6266385f2c37e227516b24077e6dd7 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Tue, 2 Jun 2009 17:52:33 +0000 Subject: Import LLVM, at r72732. --- test/FrontendC++/2009-02-07-VolatileArrayRefHack.cpp | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/FrontendC++/2009-02-07-VolatileArrayRefHack.cpp (limited to 'test/FrontendC++/2009-02-07-VolatileArrayRefHack.cpp') diff --git a/test/FrontendC++/2009-02-07-VolatileArrayRefHack.cpp b/test/FrontendC++/2009-02-07-VolatileArrayRefHack.cpp new file mode 100644 index 0000000000000..b8589b067d29a --- /dev/null +++ b/test/FrontendC++/2009-02-07-VolatileArrayRefHack.cpp @@ -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]; +} -- cgit v1.2.3