Home | History | Annotate | Download | only in SemaCXX
      1 // RUN: %clang_cc1 -fsyntax-only -verify %s
      2 // RUN: cp %s %t
      3 // RUN: %clang_cc1 -fixit -x c++ %t
      4 // RUN: %clang_cc1 -E -o - %t | FileCheck %s
      5 
      6 void f(int a[10][20]) {
      7   // CHECK: delete[] a;
      8   delete a; // expected-warning {{'delete' applied to a pointer-to-array type}}
      9 }
     10