case-insensitive-include.c 694 B

1234567891011121314151617181920212223242526272829
  1. // REQUIRES: case-insensitive-filesystem
  2. // Test this without pch.
  3. // RUN: cp %S/Inputs/case-insensitive-include.h %T
  4. // RUN: %clang_cc1 -fsyntax-only %s -include %s -I %T -verify
  5. // Test with pch.
  6. // RUN: %clang_cc1 -emit-pch -o %t.pch %s -I %T
  7. // Modify inode of the header.
  8. // RUN: cp %T/case-insensitive-include.h %t.copy
  9. // RUN: touch -r %T/case-insensitive-include.h %t.copy
  10. // RUN: mv %t.copy %T/case-insensitive-include.h
  11. // RUN: %clang_cc1 -fsyntax-only %s -include-pch %t.pch -I %T -verify
  12. // expected-no-diagnostics
  13. #ifndef HEADER
  14. #define HEADER
  15. #include "case-insensitive-include.h"
  16. #include "Case-Insensitive-Include.h"
  17. #else
  18. #include "Case-Insensitive-Include.h"
  19. #endif