r196736 - Re-enable verification of test and update outdated diag checks

Alp Toker alp at nuanti.com
Sun Dec 8 14:22:26 PST 2013


Author: alp
Date: Sun Dec  8 16:22:26 2013
New Revision: 196736

URL: http://llvm.org/viewvc/llvm-project?rev=196736&view=rev
Log:
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.

Modified:
    cfe/trunk/test/Sema/crash-invalid-array.c

Modified: cfe/trunk/test/Sema/crash-invalid-array.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/crash-invalid-array.c?rev=196736&r1=196735&r2=196736&view=diff
==============================================================================
--- cfe/trunk/test/Sema/crash-invalid-array.c (original)
+++ cfe/trunk/test/Sema/crash-invalid-array.c Sun Dec  8 16:22:26 2013
@@ -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 <stdio.h>
@@ -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 []'}}
    }
 }
 





More information about the cfe-commits mailing list