Ben Langmuir | 527040e | 2014-05-05 05:31:33 +0000 | [diff] [blame] | 1 | // RUN: rm -rf %t |
Richard Smith | 47972af | 2015-06-16 00:08:24 +0000 | [diff] [blame] | 2 | // RUN: not %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t \ |
Ben Langmuir | 527040e | 2014-05-05 05:31:33 +0000 | [diff] [blame] | 3 | // RUN: -I %S/Inputs/submodules %s 2>&1 | FileCheck %s |
| 4 | // CHECK: import of module 'import_self.c' appears within same top-level module 'import_self' |
| 5 | |
Richard Smith | 47972af | 2015-06-16 00:08:24 +0000 | [diff] [blame] | 6 | // RUN: not %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t \ |
Ben Langmuir | 527040e | 2014-05-05 05:31:33 +0000 | [diff] [blame] | 7 | // RUN: -I %S/Inputs/submodules -fmodule-name=import_self %s \ |
| 8 | // RUN: 2>&1 | FileCheck -check-prefix=CHECK-fmodule-name %s |
Richard Smith | 7e82e01 | 2016-02-19 22:25:36 +0000 | [diff] [blame] | 9 | // CHECK-fmodule-name: @import of module 'import_self.b' in implementation of 'import_self' |
Ben Langmuir | 527040e | 2014-05-05 05:31:33 +0000 | [diff] [blame] | 10 | |
| 11 | @import import_self.b; |