]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/SemaCXX/delete.cpp
Vendor import of clang release_30 branch r142614:
[FreeBSD/FreeBSD.git] / test / SemaCXX / delete.cpp
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 }