Move variable that's unused in an NDEBUG build inside the DEBUG() macro, fixing
[llvm.git] / test / FrontendC / 2003-11-03-AddrArrayElement.c
blob4337da7d1e43fe4f300c3dc3b5f0ca77bae27dcf
1 // RUN: %llvmgcc -xc %s -S -o - | grep getelementptr
3 // This should be turned into a tasty getelementptr instruction, not a nasty
4 // series of casts and address arithmetic.
6 char Global[100];
8 char *test1(unsigned i) {
9 return &Global[i];