// RUN: not %clang_cc1 -O1 %s -emit-llvm
// PR6913

#include <stdio.h>

int main()
{
   int x[10][10];
   int (*p)[] = x; // expected-error {{invalid use of array with unspecified bounds}

   int i;

   for(i = 0; i < 10; ++i)
   {
       p[i][i] = i;
   }
}

Bring over a test from llvm/test/FrontendC that is for Sema and not CodeGen.
Bring over a test from llvm/test/FrontendC that is for Sema and not CodeGen.


git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@135753 91177308-0d34-0410-b5e6-96231b3b80d8
