multiple_decls.c 348 B

1234567891011121314151617
  1. // Test this without pch.
  2. // RUN: %clang_cc1 -include %S/multiple_decls.h -fsyntax-only -ast-print -o - %s
  3. // Test with pch.
  4. // RUN: %clang_cc1 -emit-pch -o %t %S/multiple_decls.h
  5. // RUN: %clang_cc1 -include-pch %t -fsyntax-only -ast-print -o - %s
  6. void f0(char c) {
  7. wide(c);
  8. }
  9. struct wide w;
  10. struct narrow n;
  11. void f1(int i) {
  12. narrow(i);
  13. }