blob: 733e3f90bc76e3cb237cf6bcbc1bd77b463fba13 [file] [log] [blame]
Richard Smithace21ba2013-07-14 02:01:48 +00001// RUN: rm -rf %t
2// RUN: %clang_cc1 -x objective-c++ -fmodules -fmodules-cache-path=%t -I %S/Inputs %s -verify -std=c++11
3
4// expected-no-diagnostics
5
6@import cxx_decls.imported;
7
8void test_delete(int *p) {
9 // We can call the normal global deallocation function even though it has only
10 // ever been explicitly declared in an unimported submodule.
11 delete p;
12}