Douglas Gregor | a6b00fc | 2013-01-23 22:38:11 +0000 | [diff] [blame] | 1 | // RUN: rm -rf %t |
Douglas Gregor | f575d6e | 2013-01-25 00:45:27 +0000 | [diff] [blame^] | 2 | // RUN: %clang_cc1 -Wauto-import -fmodule-cache-path %t -fdisable-module-hash -fmodules -fmodules-global-index -F %S/Inputs %s -verify |
Douglas Gregor | a6b00fc | 2013-01-23 22:38:11 +0000 | [diff] [blame] | 3 | // RUN: ls %t|grep modules.idx |
Douglas Gregor | f575d6e | 2013-01-25 00:45:27 +0000 | [diff] [blame^] | 4 | // RUN: %clang_cc1 -Wauto-import -fmodule-cache-path %t -fdisable-module-hash -fmodules -fmodules-global-index -F %S/Inputs %s -verify |
| 5 | // REQUIRES: shell |
Douglas Gregor | a6b00fc | 2013-01-23 22:38:11 +0000 | [diff] [blame] | 6 | |
| 7 | // expected-no-diagnostics |
| 8 | @import DependsOnModule; |
Douglas Gregor | f575d6e | 2013-01-25 00:45:27 +0000 | [diff] [blame^] | 9 | @import Module; |
Douglas Gregor | a6b00fc | 2013-01-23 22:38:11 +0000 | [diff] [blame] | 10 | |
Douglas Gregor | f575d6e | 2013-01-25 00:45:27 +0000 | [diff] [blame^] | 11 | int *get_sub() { |
| 12 | return Module_Sub; |
| 13 | } |