Douglas Gregor | 463d909 | 2012-11-29 23:55:25 +0000 | [diff] [blame] | 1 | // 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 Module; |
| 5 | @__experimental_modules_import DependsOnModule; |
| 6 | |
Douglas Gregor | 830ea5b | 2012-11-30 18:38:50 +0000 | [diff] [blame] | 7 | // CHECK: While building module 'Module' imported from |
Douglas Gregor | 463d909 | 2012-11-29 23:55:25 +0000 | [diff] [blame] | 8 | // CHECK: error: expected ';' after top level declarator |
Richard Smith | 5b10af7 | 2012-12-05 11:04:55 +0000 | [diff] [blame^] | 9 | // CHECK: note: expanded from here |
Douglas Gregor | 463d909 | 2012-11-29 23:55:25 +0000 | [diff] [blame] | 10 | // CHECK: fatal error: could not build module 'Module' |
Douglas Gregor | 830ea5b | 2012-11-30 18:38:50 +0000 | [diff] [blame] | 11 | // CHECK: While building module 'DependsOnModule' imported from |
Douglas Gregor | 463d909 | 2012-11-29 23:55:25 +0000 | [diff] [blame] | 12 | // CHECK: fatal error: could not build module 'Module' |
| 13 | // CHECK-NOT: error: |