system-header-line-directive-ms-lineendings.c 929 B

123456789101112131415161718192021
  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. #include "line-directive.h"
  5. // This tests that the line numbers for the current file are correctly outputted
  6. // for the include-file-completed test case. This file should be CRLF.
  7. // CHECK: # 1 "{{.*}}system-header-line-directive-ms-lineendings.c" 2
  8. // CHECK: # 1 "{{.*}}noline.h" 1 3
  9. // CHECK: foo();
  10. // CHECK: # 3 "{{.*}}system-header-line-directive-ms-lineendings.c" 2
  11. // CHECK: # 1 "{{.*}}line-directive-in-system.h" 1 3
  12. // The "3" below indicates that "foo.h" is considered a system header.
  13. // CHECK: # 1 "foo.h" 3
  14. // CHECK: foo();
  15. // CHECK: # 4 "{{.*}}system-header-line-directive-ms-lineendings.c" 2
  16. // CHECK: # 1 "{{.*}}line-directive.h" 1
  17. // CHECK: # 10 "foo.h"{{$}}
  18. // CHECK: # 6 "{{.*}}system-header-line-directive-ms-lineendings.c" 2