[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / PCH / enum.c
blob9e7fbe92c25f3a9fa5fcca6891ac4399122d7da4
1 // Test this without pch.
2 // RUN: %clang_cc1 -include %S/enum.h -fsyntax-only -verify %s
4 // Test with pch.
5 // RUN: %clang_cc1 -emit-pch -o %t %S/enum.h
6 // RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %s
8 // expected-no-diagnostics
10 int i = Red;
12 int return_enum_constant(void) {
13 int result = aRoundShape;
14 return result;
17 enum Shape s = Triangle;