1*0a6a1f1dSLionel Sambuc// RUN: rm -rf %t 2*0a6a1f1dSLionel Sambuc// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -I %S/Inputs -include %S/Inputs/preprocess-prefix.h -E %s | FileCheck -strict-whitespace %s 3*0a6a1f1dSLionel Sambuc// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -I %S/Inputs -x objective-c-header -emit-pch %S/Inputs/preprocess-prefix.h -o %t.pch 4*0a6a1f1dSLionel Sambuc// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -I %S/Inputs -include-pch %t.pch -E %s | FileCheck -strict-whitespace %s 5*0a6a1f1dSLionel Sambuc#import "diamond_right.h" 6*0a6a1f1dSLionel Sambuc#import "diamond_right.h" // to check that imports get their own line 7*0a6a1f1dSLionel Sambucvoid test() { 8*0a6a1f1dSLionel Sambuc top_left_before(); 9*0a6a1f1dSLionel Sambuc left_and_right(); 10*0a6a1f1dSLionel Sambuc} 11*0a6a1f1dSLionel Sambuc 12*0a6a1f1dSLionel Sambuc 13*0a6a1f1dSLionel Sambuc// CHECK: int left_and_right(int *);{{$}} 14*0a6a1f1dSLionel Sambuc// CHECK-NEXT: @import diamond_left; /* clang -E: implicit import for "{{.*}}diamond_left.h" */{{$}} 15*0a6a1f1dSLionel Sambuc 16*0a6a1f1dSLionel Sambuc// CHECK: @import diamond_right; /* clang -E: implicit import for "{{.*}}diamond_right.h" */{{$}} 17*0a6a1f1dSLionel Sambuc// CHECK: @import diamond_right; /* clang -E: implicit import for "{{.*}}diamond_right.h" */{{$}} 18*0a6a1f1dSLionel Sambuc// CHECK-NEXT: void test() {{{$}} 19*0a6a1f1dSLionel Sambuc// CHECK-NEXT: top_left_before();{{$}} 20*0a6a1f1dSLionel Sambuc// CHECK-NEXT: left_and_right();{{$}} 21*0a6a1f1dSLionel Sambuc// CHECK-NEXT: }{{$}} 22