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

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

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