summaryrefslogtreecommitdiff
path: root/test/FrontendC++/2009-02-07-VolatileArrayRefHack.cpp
blob: b8589b067d29a2e9aa06b6055fdbd2f5c596e97a (plain)
1
2
3
4
5
6
7
// RUN: %llvmgxx -S %s -o - | grep {volatile load}
// PR3320

void test(volatile int *a) {
    // should be a volatile load.
    a[0];
}