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

llvm-svn: 135753
This commit is contained in:
Eric Christopher 2011-07-22 07:26:22 +00:00
parent e135b089d8
commit 516a79e32c
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
// 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;
}
}