Richard Smith | 466a15e | 2016-04-08 00:09:53 +0000 | [diff] [blame] | 1 | // RUN: rm -rf %t |
| 2 | // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs -x c++ -E %s | \ |
Richard Smith | c51c38b | 2017-04-29 00:34:47 +0000 | [diff] [blame^] | 3 | // RUN: FileCheck -strict-whitespace %s |
Richard Smith | 466a15e | 2016-04-08 00:09:53 +0000 | [diff] [blame] | 4 | // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs -x objective-c -E %s | \ |
Richard Smith | c51c38b | 2017-04-29 00:34:47 +0000 | [diff] [blame^] | 5 | // RUN: FileCheck -strict-whitespace %s |
Richard Smith | 466a15e | 2016-04-08 00:09:53 +0000 | [diff] [blame] | 6 | // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs -x c++ -E -frewrite-includes %s | \ |
Richard Smith | c51c38b | 2017-04-29 00:34:47 +0000 | [diff] [blame^] | 7 | // RUN: FileCheck -strict-whitespace %s --check-prefix=REWRITE |
Richard Smith | 466a15e | 2016-04-08 00:09:53 +0000 | [diff] [blame] | 8 | // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs -x objective-c -E -frewrite-includes %s | \ |
Richard Smith | c51c38b | 2017-04-29 00:34:47 +0000 | [diff] [blame^] | 9 | // RUN: FileCheck -strict-whitespace %s --check-prefix=REWRITE |
Richard Smith | 466a15e | 2016-04-08 00:09:53 +0000 | [diff] [blame] | 10 | #include "dummy.h" |
| 11 | #include "dummy.h" |
| 12 | foo bar baz |
| 13 | |
Richard Smith | c51c38b | 2017-04-29 00:34:47 +0000 | [diff] [blame^] | 14 | // EOF marker to ensure -frewrite-includes doesn't match its own CHECK lines. |
Richard Smith | 466a15e | 2016-04-08 00:09:53 +0000 | [diff] [blame] | 15 | |
Richard Smith | c51c38b | 2017-04-29 00:34:47 +0000 | [diff] [blame^] | 16 | // REWRITE: #if 0 |
| 17 | // REWRITE: #include{{ }}"dummy.h" |
| 18 | // REWRITE: #endif |
Richard Smith | 466a15e | 2016-04-08 00:09:53 +0000 | [diff] [blame] | 19 | |
Richard Smith | c51c38b | 2017-04-29 00:34:47 +0000 | [diff] [blame^] | 20 | // CHECK: #pragma clang module import dummy /* clang {{.*}} implicit import |
| 21 | |
| 22 | // REWRITE: #if 0 |
| 23 | // REWRITE: #include{{ }}"dummy.h" |
| 24 | // REWRITE: #endif |
| 25 | |
| 26 | // CHECK: #pragma clang module import dummy /* clang {{.*}} implicit import |
| 27 | |
| 28 | // CHECK: foo bar baz |
| 29 | |
| 30 | // REWRITE: // {{EOF}} marker |