enum.c 359 B

1234567891011121314151617
  1. // Test this without pch.
  2. // RUN: %clang_cc1 -include %S/enum.h -fsyntax-only -verify %s
  3. // Test with pch.
  4. // RUN: %clang_cc1 -emit-pch -o %t %S/enum.h
  5. // RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %s
  6. // expected-no-diagnostics
  7. int i = Red;
  8. int return_enum_constant() {
  9. int result = aRoundShape;
  10. return result;
  11. }
  12. enum Shape s = Triangle;