1 | // RUN: %clang_cc1 %s -E -o - -I %S/Inputs -isystem %S/Inputs/SystemHeaderPrefix | FileCheck %s
|
2 | #include <noline.h>
|
3 | #include <line-directive-in-system.h>
|
4 |
|
5 | #include "line-directive.h"
|
6 |
|
7 | // This tests that the line numbers for the current file are correctly outputted
|
8 | // for the include-file-completed test case. This file should be CRLF.
|
9 |
|
10 | // CHECK: # 1 "{{.*}}system-header-line-directive-ms-lineendings.c" 2
|
11 | // CHECK: # 1 "{{.*}}noline.h" 1 3
|
12 | // CHECK: foo();
|
13 | // CHECK: # 3 "{{.*}}system-header-line-directive-ms-lineendings.c" 2
|
14 | // CHECK: # 1 "{{.*}}line-directive-in-system.h" 1 3
|
15 | // The "3" below indicates that "foo.h" is considered a system header.
|
16 | // CHECK: # 1 "foo.h" 3
|
17 | // CHECK: foo();
|
18 | // CHECK: # 4 "{{.*}}system-header-line-directive-ms-lineendings.c" 2
|
19 | // CHECK: # 1 "{{.*}}line-directive.h" 1
|
20 | // CHECK: # 10 "foo.h"{{$}}
|
21 | // CHECK: # 6 "{{.*}}system-header-line-directive-ms-lineendings.c" 2
|
22 | |