mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-01 14:16:09 +00:00

Checking that the created output matches something is nice, but this should also check whether the output makes sense. Differential Revision: https://reviews.llvm.org/D63979 llvm-svn: 372250
10 lines
486 B
C
10 lines
486 B
C
// RUN: not %clang_cc1 -verify -E -frewrite-includes -include %S/Inputs/rewrite-includes2.h %s -o - | FileCheck -strict-whitespace %s
|
|
main_file_line
|
|
// CHECK: {{^}}# 1 "<built-in>"{{$}}
|
|
// CHECK-NEXT: {{^}}# 1 "{{.*[/\\]Inputs(/|\\\\)}}rewrite-includes2.h" 1{{$}}
|
|
// CHECK-NEXT: {{^}}int included_line2;{{$}}
|
|
// CHECK-NEXT: {{^}}# 1 "<built-in>" 2{{$}}
|
|
// CHECK-NEXT: {{^}}# 1 "{{.*}}rewrite-includes-cli-include.c"{{$}}
|
|
// CHECK-NEXT: FileCheck
|
|
// CHECK-NEXT: {{^}}main_file_line{{$}}
|