aboutsummaryrefslogtreecommitdiff
path: root/test/Modules/import-self.m
blob: 68be565eaf406fbfad951117c1dd5c960a9d9eed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
// RUN: rm -rf %t
// RUN: not %clang_cc1 -fmodules -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 -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' appears within same top-level module 'import_self'

@import import_self.b;