f4a2713ac8
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
20 lines
934 B
C
20 lines
934 B
C
// RUN: rm -rf %t
|
|
// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -x objective-c %s -F %S/../Modules/Inputs -E -frewrite-includes -o - | FileCheck %s
|
|
|
|
int bar();
|
|
#include <Module/Module.h>
|
|
int foo();
|
|
#include <Module/Module.h>
|
|
|
|
// CHECK: int bar();{{$}}
|
|
// CHECK-NEXT: #if 0 /* expanded by -frewrite-includes */{{$}}
|
|
// CHECK-NEXT: #include <Module/Module.h>{{$}}
|
|
// CHECK-NEXT: #endif /* expanded by -frewrite-includes */{{$}}
|
|
// CHECK-NEXT: @import Module; /* clang -frewrite-includes: implicit import */{{$}}
|
|
// CHECK-NEXT: # 6 "{{.*[/\\]}}rewrite-includes-modules.c"{{$}}
|
|
// CHECK-NEXT: int foo();{{$}}
|
|
// CHECK-NEXT: #if 0 /* expanded by -frewrite-includes */{{$}}
|
|
// CHECK-NEXT: #include <Module/Module.h>{{$}}
|
|
// CHECK-NEXT: #endif /* expanded by -frewrite-includes */{{$}}
|
|
// CHECK-NEXT: @import Module; /* clang -frewrite-includes: implicit import */{{$}}
|
|
// CHECK-NEXT: # 8 "{{.*[/\\]}}rewrite-includes-modules.c"{{$}}
|