aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/2008-08-19-cast-of-typedef.c
blob: 581c79356b66efa322bd8d0caa6dc4331287aa55 (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: clang --emit-llvm -o %t %s

typedef short T[4];
struct s {
  T f0;
};

void foo(struct s *x) {
  bar((long) x->f0);
}