blob: 4c5d5f5de524dd675aee90ba866a651343ecd9b7 [file] [log] [blame]
Douglas Gregor830ea5b2012-11-30 18:38:50 +00001// RUN: rm -rf %t
2// RUN: %clang_cc1 -fmodule-cache-path %t -fmodules -F %S/Inputs -DgetModuleVersion="epic fail" %s 2>&1 | FileCheck %s
3
4@__experimental_modules_import DependsOnModule;
5
6// CHECK: While building module 'DependsOnModule' imported from
7// CHECK: While building module 'Module' imported from
8// CHECK: error: expected ';' after top level declarator
9// CHECK: note: expanded from macro 'getModuleVersion'
10// CHECK: fatal error: could not build module 'Module'
11// CHECK: fatal error: could not build module 'DependsOnModule'
12// CHECK-NOT: error:
Douglas Gregor6c325432012-11-30 21:58:49 +000013
14// RUN: %clang_cc1 -fmodule-cache-path %t -fmodules -F %S/Inputs %s -fdiagnostics-show-note-include-stack 2>&1 | FileCheck -check-prefix=CHECK-REDEF %s
15extern int Module;
16
17// CHECK-REDEF: In module 'DependsOnModule' imported from
18// CHECK-REDEF: In module 'Module' imported from
19// CHECK-REDEF: Module.h:15:12: note: previous definition is here