summaryrefslogtreecommitdiff
path: root/clang/test/Modules/submodules.m
blob: e014bead73b24638acddc62f7eb602291e35a6a5 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11

// RUN: rm -rf %t
// RUN: %clang_cc1 -Wauto-import -fmodule-cache-path %t -fmodules -F %S/Inputs %s -verify

// Note: transitively imports Module.Sub2.
@__experimental_modules_import Module.Sub;

int getValue() { 
  return *Module_Sub + *Module_Sub2;
}