llvm-6502/test/FrontendC++/2009-02-07-VolatileArrayRefHack.cpp
Eli Friedman 9a0f436da2 Fix test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137556 91177308-0d34-0410-b5e6-96231b3b80d8
2011-08-13 17:06:34 +00:00

8 lines
137 B
C++

// RUN: %llvmgxx -S %s -o - | grep {load volatile}
// PR3320
void test(volatile int *a) {
// should be a volatile load.
a[0];
}