
option. Previously these options could both be used to specify that you were compiling the implementation file of a module, with a different set of minor bugs in each case. This change removes -fmodule-implementation-of, and instead tracks a flag to determine whether we're currently building a module. -fmodule-name now behaves the same way that -fmodule-implementation-of previously did. llvm-svn: 261372
12 lines
607 B
Matlab
12 lines
607 B
Matlab
// RUN: rm -rf %t
|
|
// RUN: not %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t \
|
|
// 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'
|
|
|
|
// RUN: not %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t \
|
|
// RUN: -I %S/Inputs/submodules -fmodule-name=import_self %s \
|
|
// RUN: 2>&1 | FileCheck -check-prefix=CHECK-fmodule-name %s
|
|
// CHECK-fmodule-name: @import of module 'import_self.b' in implementation of 'import_self'
|
|
|
|
@import import_self.b;
|