brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · d855fed Raw
31 lines · cpp
1// RUN: rm -rf %t2// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs -x c++ -E %s | \3// RUN:   FileCheck -strict-whitespace %s4// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs -x objective-c -E %s | \5// RUN:   FileCheck -strict-whitespace %s6// 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=REWRITE8// 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=REWRITE10#include "dummy.h"11#include "dummy.h"12foo bar baz13 14// EOF marker to ensure -frewrite-includes doesn't match its own CHECK lines.15 16// REWRITE: #if 017// REWRITE: #include{{ }}"dummy.h"18// REWRITE: #endif19 20// CHECK: #pragma clang module import dummy /* clang {{.*}} implicit import21 22// REWRITE: #if 023// REWRITE: #include{{ }}"dummy.h"24// REWRITE: #endif25 26// CHECK: #pragma clang module import dummy /* clang {{.*}} implicit import27 28// CHECK: foo bar baz29 30// REWRITE: // {{EOF}} marker31