2016-04-08 08:09:53 +08:00
|
|
|
// RUN: rm -rf %t
|
|
|
|
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs -x c++ -E %s | \
|
2017-04-29 08:34:47 +08:00
|
|
|
// RUN: FileCheck -strict-whitespace %s
|
2016-04-08 08:09:53 +08:00
|
|
|
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs -x objective-c -E %s | \
|
2017-04-29 08:34:47 +08:00
|
|
|
// RUN: FileCheck -strict-whitespace %s
|
2016-04-08 08:09:53 +08:00
|
|
|
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs -x c++ -E -frewrite-includes %s | \
|
2017-04-29 08:34:47 +08:00
|
|
|
// RUN: FileCheck -strict-whitespace %s --check-prefix=REWRITE
|
2016-04-08 08:09:53 +08:00
|
|
|
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs -x objective-c -E -frewrite-includes %s | \
|
2017-04-29 08:34:47 +08:00
|
|
|
// RUN: FileCheck -strict-whitespace %s --check-prefix=REWRITE
|
2016-04-08 08:09:53 +08:00
|
|
|
#include "dummy.h"
|
|
|
|
#include "dummy.h"
|
|
|
|
foo bar baz
|
|
|
|
|
2017-04-29 08:34:47 +08:00
|
|
|
// EOF marker to ensure -frewrite-includes doesn't match its own CHECK lines.
|
2016-04-08 08:09:53 +08:00
|
|
|
|
2017-04-29 08:34:47 +08:00
|
|
|
// REWRITE: #if 0
|
|
|
|
// REWRITE: #include{{ }}"dummy.h"
|
|
|
|
// REWRITE: #endif
|
2016-04-08 08:09:53 +08:00
|
|
|
|
2017-04-29 08:34:47 +08:00
|
|
|
// CHECK: #pragma clang module import dummy /* clang {{.*}} implicit import
|
|
|
|
|
|
|
|
// REWRITE: #if 0
|
|
|
|
// REWRITE: #include{{ }}"dummy.h"
|
|
|
|
// REWRITE: #endif
|
|
|
|
|
|
|
|
// CHECK: #pragma clang module import dummy /* clang {{.*}} implicit import
|
|
|
|
|
|
|
|
// CHECK: foo bar baz
|
|
|
|
|
|
|
|
// REWRITE: // {{EOF}} marker
|