brintos

brintos / llvm-project-archived public Read only

0
0
Text · 244 B · 9a80ab6 Raw
16 lines · cpp
1// RUN: %clang_cc1 -triple=x86_64-unknown-linux-gnu -emit-llvm -o - %s | FileCheck %s2struct RT {3  char A;4  int B[10][20];5  char C;6};7struct ST {8  int X;9  double Y;10  struct RT Z;11};12 13int *foo(struct ST *s) {14  return &s[1].Z.B[5][13];15}16