From: Alp Toker Date: Sun, 8 Dec 2013 22:22:26 +0000 (+0000) Subject: Re-enable verification of test and update outdated diag checks X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=05e62fb1aea0642a73ca931d01fe4b901e4a0097;p=clang Re-enable verification of test and update outdated diag checks Going by PR6913 it looks like this one can no longer reach CodeGen so remove the redundant -emit-llvm case and treat it as an ordinary Sema test. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196736 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Sema/crash-invalid-array.c b/test/Sema/crash-invalid-array.c index eeac39148c..dac335174f 100644 --- a/test/Sema/crash-invalid-array.c +++ b/test/Sema/crash-invalid-array.c @@ -1,4 +1,4 @@ -// RUN: not %clang_cc1 -O1 %s -emit-llvm +// RUN: %clang_cc1 -triple x86_64-apple-darwin -fsyntax-only -verify %s // PR6913 #include @@ -6,13 +6,13 @@ int main() { int x[10][10]; - int (*p)[] = x; // expected-error {{invalid use of array with unspecified bounds} + int (*p)[] = x; int i; for(i = 0; i < 10; ++i) { - p[i][i] = i; + p[i][i] = i; // expected-error {{subscript of pointer to incomplete type 'int []'}} } }