xref: /minix3/external/bsd/llvm/dist/clang/test/Modules/epic-fail.m (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc// RUN: rm -rf %t
2*f4a2713aSLionel Sambuc// RUN: not %clang_cc1 -fmodules-cache-path=%t -fmodules -F %S/Inputs -DgetModuleVersion="epic fail" %s 2>&1 | FileCheck %s
3*f4a2713aSLionel Sambuc
4*f4a2713aSLionel Sambuc@import Module;
5*f4a2713aSLionel Sambuc@import DependsOnModule;
6*f4a2713aSLionel Sambuc
7*f4a2713aSLionel Sambuc// CHECK: While building module 'Module' imported from
8*f4a2713aSLionel Sambuc// CHECK: error: expected ';' after top level declarator
9*f4a2713aSLionel Sambuc// CHECK: note: expanded from here
10*f4a2713aSLionel Sambuc// CHECK: fatal error: could not build module 'Module'
11*f4a2713aSLionel Sambuc// CHECK: While building module 'DependsOnModule' imported from
12*f4a2713aSLionel Sambuc// CHECK: fatal error: could not build module 'Module'
13*f4a2713aSLionel Sambuc// CHECK-NOT: error:
14