2013-04-10 09:53:50 +08:00
|
|
|
// RUN: rm -rf %t
|
2014-07-16 23:12:48 +08:00
|
|
|
// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -x objective-c %s -F %S/../Modules/Inputs -E -frewrite-includes -o - | FileCheck %s
|
2013-04-10 09:53:50 +08:00
|
|
|
|
|
|
|
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 */{{$}}
|
2014-05-02 05:11:57 +08:00
|
|
|
// CHECK-NEXT: # 5 "{{.*[/\\]}}rewrite-includes-modules.c"{{$}}
|
2013-04-10 09:53:50 +08:00
|
|
|
// 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 */{{$}}
|
2014-05-02 05:11:57 +08:00
|
|
|
// CHECK-NEXT: # 7 "{{.*[/\\]}}rewrite-includes-modules.c"{{$}}
|
2013-04-10 09:53:50 +08:00
|
|
|
// CHECK-NEXT: @import Module; /* clang -frewrite-includes: implicit import */{{$}}
|
|
|
|
// CHECK-NEXT: # 8 "{{.*[/\\]}}rewrite-includes-modules.c"{{$}}
|