]> git.proxmox.com Git - rustc.git/blob - src/llvm/tools/clang/test/SemaCXX/delete.cpp
Imported Upstream version 0.6
[rustc.git] / src / llvm / tools / clang / 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 }