Douglas Gregor | d620a84 | 2011-12-06 17:16:41 +0000 | [diff] [blame^] | 1 | // RUN: rm -rf %t |
2 | // RUN: %clang_cc1 -Wauto-import -fmodule-cache-path %t -fauto-module-import -F %S/Inputs %s -verify | ||||
3 | |||||
4 | __import_module__ DependsOnModule; | ||||
5 | |||||
6 | void testSubFramework() { | ||||
7 | float *sf1 = sub_framework; // expected-error{{use of undeclared identifier 'sub_framework'}} | ||||
8 | } | ||||
9 | |||||
10 | __import_module__ DependsOnModule.SubFramework; | ||||
11 | |||||
12 | void testSubFrameworkAgain() { | ||||
13 | float *sf2 = sub_framework; | ||||
14 | double *sfo1 = sub_framework_other; | ||||
15 | } | ||||
16 |