Argyrios Kyrtzidis | 4076dac | 2010-09-13 20:15:54 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
2 | // RUN: cp %s %t | ||||
3 | // RUN: %clang_cc1 -fixit -x c++ %t | ||||
Richard Trieu | 133ca80 | 2011-10-13 23:26:59 +0000 | [diff] [blame] | 4 | // RUN: %clang_cc1 -E -o - %t | FileCheck %s |
Argyrios Kyrtzidis | 4076dac | 2010-09-13 20:15:54 +0000 | [diff] [blame] | 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 | } |