Files
llvm-project/llvm/test/FrontendC++/2009-02-07-VolatileArrayRefHack.cpp
Chris Lattner 4f8542f31d testcase for r64049 of llvm-gcc.
llvm-svn: 64050
2009-02-07 23:37:03 +00:00

8 lines
137 B
C++

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