// RUN: clang %s -verify -fsyntax-only

int test1() {
  typedef int x[test1()];  // vla
  static int y = sizeof(x);  // expected-error {{not constant}}
}

// PR2347
void f (unsigned int m)
{
  extern int e[2][m];

  e[0][0] = 0;
}


// RUN: clang %s -verify -fsyntax-only

int test1() {
  typedef int x[test1()];  // vla
  static int y = sizeof(x);  // expected-error {{not constant}}
}

// PR2347
void f (unsigned int m)
{
  int e[2][m];

  e[0][0] = 0;
}


Fix this test so that it's valid; the point is to test for the crash, not the missing diagnostic.
Fix this test so that it's valid; the point is to test for the crash, 
not the missing diagnostic.



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