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

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

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