blob: 10ceb7c60b0a8072bbda27113a638af829f294f8 [file] [log] [blame]
Douglas Gregor0a2b45e2009-04-13 18:14:40 +00001// Test this without pch.
Daniel Dunbara5728872009-12-15 20:14:24 +00002// RUN: %clang_cc1 -include %S/enum.h -fsyntax-only -verify %s
Douglas Gregor0a2b45e2009-04-13 18:14:40 +00003
4// Test with pch.
Daniel Dunbara5728872009-12-15 20:14:24 +00005// RUN: %clang_cc1 -emit-pch -o %t %S/enum.h
6// RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %s
Douglas Gregor0a2b45e2009-04-13 18:14:40 +00007
8int i = Red;
9
10int return_enum_constant() {
11 int result = aRoundShape;
12 return result;
13}
14
15enum Shape s = Triangle;