1 // RUN: rm -rf %t
2 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs -x c++ -E %s | \
3 // RUN:   FileCheck -strict-whitespace %s
4 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs -x objective-c -E %s | \
5 // RUN:   FileCheck -strict-whitespace %s
6 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs -x c++ -E -frewrite-includes %s | \
7 // RUN:   FileCheck -strict-whitespace %s --check-prefix=REWRITE
8 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs -x objective-c -E -frewrite-includes %s | \
9 // RUN:   FileCheck -strict-whitespace %s --check-prefix=REWRITE
10 #include "dummy.h"
11 #include "dummy.h"
12 foo bar baz
13 
14 // EOF marker to ensure -frewrite-includes doesn't match its own CHECK lines.
15 
16 // REWRITE: #if 0
17 // REWRITE: #include{{ }}"dummy.h"
18 // REWRITE: #endif
19 
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
31