Files
clang-p2996/clang/test/Modules/normal-module-map.cpp
Douglas Gregor 2b20cb87f5 Add support for building a module from a module map to the -cc1
interface. This is currently limited to modules with umbrella
headers.

llvm-svn: 144736
2011-11-16 00:09:06 +00:00

21 lines
516 B
C++

// 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
#include "Umbrella/Umbrella.h"
int getUmbrella() {
return umbrella;
}
__import_module__ Umbrella2;
// FIXME: The expected error here is temporary, since we don't yet have the
// logic to build a module from a module map.
#include "a1.h" // expected-error{{module 'libA' not found}}
#include "b1.h"
#include "nested/nested2.h"
int test() {
return a1 + b1 + nested2;
}