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 dummy;
7 @import cxx_decls.imported;
8 
9 void test_delete(int *p) {
10   // We can call the normal global deallocation function even though it has only
11   // ever been explicitly declared in an unimported submodule.
12   delete p;
13 }
14 
15 void friend_1(HasFriends s) {
16   s.private_thing();
17 }
18 void test_friends(HasFriends s) {
19   friend_1(s);
20   friend_2(s);
21 }
22