[ELF] Reorder SectionBase/InputSectionBase members
[llvm-project.git] / clang / test / Frontend / system-header-line-directive-ms-lineendings.c
blob92fc07f65e0d4d85bc857c0dd5144e7b1f213d0a
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>
5 #include "line-directive.h"
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.
10 // CHECK: # 1 "{{.*}}system-header-line-directive-ms-lineendings.c" 2
11 // CHECK: # 1 "{{.*}}noline.h" 1 3
12 // CHECK: foo(void);
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(void);
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