diff options
author | Chris Lattner <sabre@nondot.org> | 2009-02-07 23:37:03 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-02-07 23:37:03 +0000 |
commit | ed54534a82257e33def60f00c15ccb0399dc3e1d (patch) | |
tree | a54d2d4777b70ed93a425556124069106826843e /test/FrontendC++/2009-02-07-VolatileArrayRefHack.cpp | |
parent | 556b4a6385d34b77e58ff5a3ce51ddae5ae6112c (diff) | |
download | external_llvm-ed54534a82257e33def60f00c15ccb0399dc3e1d.zip external_llvm-ed54534a82257e33def60f00c15ccb0399dc3e1d.tar.gz external_llvm-ed54534a82257e33def60f00c15ccb0399dc3e1d.tar.bz2 |
testcase for r64049 of llvm-gcc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64050 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FrontendC++/2009-02-07-VolatileArrayRefHack.cpp')
-rw-r--r-- | test/FrontendC++/2009-02-07-VolatileArrayRefHack.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/FrontendC++/2009-02-07-VolatileArrayRefHack.cpp b/test/FrontendC++/2009-02-07-VolatileArrayRefHack.cpp new file mode 100644 index 0000000..b8589b0 --- /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]; +} |