aboutsummaryrefslogtreecommitdiff
path: root/test/Modules/inferred-submodules.m
blob: f801d04a0e78700fe48da827c0f1fc9fd4dbe06a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// RUN: rm -rf %t
// RUN: %clang_cc1 -x objective-c -Wauto-import -fmodules-cache-path=%t -fmodules -F %S/Inputs %s -verify
// expected-no-diagnostics

@import Module.Sub;

void test_Module_Sub() {
  int *ip = Module_Sub;
}

@import Module.Buried.Treasure;

void dig() {
  unsigned *up = Buried_Treasure;
}