multiple-include-pch.c 306 B

123456789101112131415161718
  1. // RUN: %clang_cc1 -emit-pch -o %t1.pch %s
  2. // RUN: %clang_cc1 -emit-pch -o %t2.pch %s
  3. // RUN: %clang_cc1 %s -include-pch %t1.pch -include-pch %t2.pch -verify
  4. #ifndef HEADER
  5. #define HEADER
  6. extern int x;
  7. #else
  8. #warning parsed this
  9. // expected-warning@-1 {{parsed this}}
  10. int foo() {
  11. return x;
  12. }
  13. #endif