2011-12-15 08:38:15 +08:00
|
|
|
// Note: inside the module. expected-note{{'nested_umbrella_a' declared here}}
|
2011-12-09 03:11:24 +08:00
|
|
|
|
2011-11-12 03:10:28 +08:00
|
|
|
// RUN: rm -rf %t
|
2013-02-08 03:01:24 +08:00
|
|
|
// RUN: %clang_cc1 -x objective-c -fmodules-cache-path=%t -fmodules -I %S/Inputs/normal-module-map %s -verify
|
2011-11-17 07:02:25 +08:00
|
|
|
#include "Umbrella/umbrella_sub.h"
|
2011-11-12 07:20:24 +08:00
|
|
|
|
|
|
|
int getUmbrella() {
|
2011-11-17 07:02:25 +08:00
|
|
|
return umbrella + umbrella_sub;
|
2011-11-12 07:20:24 +08:00
|
|
|
}
|
|
|
|
|
2012-12-12 06:11:52 +08:00
|
|
|
@import Umbrella2;
|
2011-11-12 08:05:07 +08:00
|
|
|
|
2011-11-17 04:05:18 +08:00
|
|
|
#include "a1.h"
|
2011-11-12 03:10:28 +08:00
|
|
|
#include "b1.h"
|
|
|
|
#include "nested/nested2.h"
|
|
|
|
|
|
|
|
int test() {
|
|
|
|
return a1 + b1 + nested2;
|
|
|
|
}
|
2011-12-09 03:11:24 +08:00
|
|
|
|
2012-12-12 06:11:52 +08:00
|
|
|
@import nested_umbrella.a;
|
2011-12-09 03:11:24 +08:00
|
|
|
|
|
|
|
int testNestedUmbrellaA() {
|
|
|
|
return nested_umbrella_a;
|
|
|
|
}
|
|
|
|
|
|
|
|
int testNestedUmbrellaBFail() {
|
|
|
|
return nested_umbrella_b; // expected-error{{use of undeclared identifier 'nested_umbrella_b'; did you mean 'nested_umbrella_a'?}}
|
|
|
|
}
|
|
|
|
|
2012-12-12 06:11:52 +08:00
|
|
|
@import nested_umbrella.b;
|
2011-12-09 03:11:24 +08:00
|
|
|
|
|
|
|
int testNestedUmbrellaB() {
|
|
|
|
return nested_umbrella_b;
|
|
|
|
}
|
2012-10-13 05:15:50 +08:00
|
|
|
|
2012-12-12 06:11:52 +08:00
|
|
|
@import nested_umbrella.a_extras;
|
2012-10-13 05:15:50 +08:00
|
|
|
|
2012-12-12 06:11:52 +08:00
|
|
|
@import nested_umbrella._1;
|
2012-10-13 05:15:50 +08:00
|
|
|
|
2012-12-12 06:11:52 +08:00
|
|
|
@import nested_umbrella.decltype_;
|
2012-10-13 05:15:50 +08:00
|
|
|
|
|
|
|
int testSanitizedName() {
|
|
|
|
return extra_a + one + decltype_val;
|
|
|
|
}
|