brintos

brintos / llvm-project-archived public Read only

0
0
Text · 191 B · 36f911e Raw
11 lines · cpp
1// RUN: %clang_cc1 -emit-llvm %s -o /dev/null2 3void test(unsigned char *b, int rb) {4  typedef unsigned char imgfoo[10][rb];5  imgfoo &br = *(imgfoo *)b;6 7  br[0][0] = 1;8 9  rb = br[0][0];10}11