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

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