aboutsummaryrefslogtreecommitdiffstats
path: root/test/C++Frontend/2005-02-20-BrokenReferenceTest.cpp
blob: af15f814f168074ac0d203a6fa99cb8397631e77 (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: %llvmgxx %s -S -o /dev/null

void test(unsigned char *b, int rb) {
  typedef unsigned char imgfoo[10][rb];
  imgfoo &br = *(imgfoo *)b;
  
  br[0][0] = 1;

  rb = br[0][0];
}