aboutsummaryrefslogtreecommitdiff
path: root/test/Modules/normal-module-map.cpp
blob: 4dfa9c9a6c46976301284df2f8abac8a330833c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// RUN: rm -rf %t
// RUN: %clang_cc1 -x objective-c -fmodule-cache-path %t -fauto-module-import -I %S/Inputs/normal-module-map %s -verify

// FIXME: The expected error here is temporary, since we don't yet have the
// logic to build a module from a module map.
#include "Umbrella/Umbrella.h"

int getUmbrella() { 
  return umbrella; 
}

__import_module__ Umbrella2;

#include "a1.h" // expected-error{{module 'libA' not found}}
#include "b1.h"
#include "nested/nested2.h"

int test() {
  return a1 + b1 + nested2;
}