From: Chris Lattner Date: Sat, 7 Feb 2009 23:37:03 +0000 (+0000) Subject: testcase for r64049 of llvm-gcc. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=ed54534a82257e33def60f00c15ccb0399dc3e1d;p=oota-llvm.git testcase for r64049 of llvm-gcc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64050 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/FrontendC++/2009-02-07-VolatileArrayRefHack.cpp b/test/FrontendC++/2009-02-07-VolatileArrayRefHack.cpp new file mode 100644 index 00000000000..b8589b067d2 --- /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]; +}