1 // RUN: %clang_cc1 -fmodules -verify %s
2 // expected-no-diagnostics
4 #pragma clang module build M
6 #pragma clang module contents
7 #pragma clang module begin M
10 ~A() { delete p
; } // expected-warning {{'delete' applied to a pointer that was allocated with 'new[]'}}
13 inline A::A() : p(new int[32]) {} // expected-note {{allocated}}
19 #pragma clang module end
20 #pragma clang module endbuild
22 #pragma clang module import M
23 B::B() : p(new int[32]) {}