| 1 |
// RUN: rm -rf %t |
| 2 |
// RUN: not %clang_cc1 -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -F %S/Inputs -DgetModuleVersion="epic fail" %s 2>&1 | FileCheck %s |
| 3 |
|
| 4 |
@import Module; |
| 5 |
@import DependsOnModule; |
| 6 |
|
| 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: While building module 'DependsOnModule' imported from |
| 12 |
// CHECK: fatal error: could not build module 'Module' |
| 13 |
// CHECK-NOT: error: |