blob: a3bc03b70b56cd1d5b49b0916929add1cd8d7ffc [file] [log] [blame]
Eric Christopher7c634a02011-07-22 07:26:22 +00001// RUN: not %clang_cc1 -O1 %s -emit-llvm
2// PR6913
3
4#include <stdio.h>
5
6int main()
7{
8 int x[10][10];
9 int (*p)[] = x; // expected-error {{invalid use of array with unspecified bounds}
10
11 int i;
12
13 for(i = 0; i < 10; ++i)
14 {
15 p[i][i] = i;
16 }
17}