2014-05-05 13:31:33 +08:00
|
|
|
// RUN: rm -rf %t
|
2015-06-16 08:08:24 +08:00
|
|
|
// RUN: not %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t \
|
2014-05-05 13:31:33 +08:00
|
|
|
// RUN: -I %S/Inputs/submodules %s 2>&1 | FileCheck %s
|
|
|
|
// CHECK: import of module 'import_self.c' appears within same top-level module 'import_self'
|
|
|
|
|
2015-06-16 08:08:24 +08:00
|
|
|
// RUN: not %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t \
|
2014-05-05 13:31:33 +08:00
|
|
|
// RUN: -I %S/Inputs/submodules -fmodule-name=import_self %s \
|
|
|
|
// RUN: 2>&1 | FileCheck -check-prefix=CHECK-fmodule-name %s
|
2016-02-20 06:25:36 +08:00
|
|
|
// CHECK-fmodule-name: @import of module 'import_self.b' in implementation of 'import_self'
|
2014-05-05 13:31:33 +08:00
|
|
|
|
|
|
|
@import import_self.b;
|