Fix a case where ScalarEvolution was expanding pointer arithmetic
[oota-llvm.git] / test / FrontendC++ / 2009-02-07-VolatileArrayRefHack.cpp
1 // RUN: %llvmgxx -S %s -o - | grep {volatile load}
2 // PR3320
3
4 void test(volatile int *a) {
5     // should be a volatile load.
6     a[0];
7 }