Richard Smith | ace21ba | 2013-07-14 02:01:48 +0000 | [diff] [blame^] | 1 | // 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 | |||||
8 | void 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 | } |