summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/2010-06-11-SaveExpr.c
blob: bfe0f35e269c5ab1febfbf7180d03f5085926b21 (about) (plain)
1
2
3
4
5
6
7
8
// RUN: %clang_cc1 -emit-llvm %s -o -
// Test case by Eric Postpischil!
void foo(void)
{
  char a[1];
  int t = 1;
  ((char (*)[t]) a)[0][0] = 0;
}