brintos

brintos / llvm-project-archived public Read only

0
0
Text · 363 B · 9e7fbe9 Raw
18 lines · c
1// Test this without pch.2// RUN: %clang_cc1 -include %S/enum.h -fsyntax-only -verify %s3 4// Test with pch.5// RUN: %clang_cc1 -emit-pch -o %t %S/enum.h6// RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %s 7 8// expected-no-diagnostics9 10int i = Red;11 12int return_enum_constant(void) {13  int result = aRoundShape;14  return result;15}16 17enum Shape s = Triangle;18