2009-04-14 02:14:40 +08:00
|
|
|
// Test this without pch.
|
2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -include %S/enum.h -fsyntax-only -verify %s
|
2009-04-14 02:14:40 +08:00
|
|
|
|
|
|
|
// Test with pch.
|
2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -emit-pch -o %t %S/enum.h
|
|
|
|
// RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %s
|
2009-04-14 02:14:40 +08:00
|
|
|
|
2012-10-19 20:44:48 +08:00
|
|
|
// expected-no-diagnostics
|
|
|
|
|
2009-04-14 02:14:40 +08:00
|
|
|
int i = Red;
|
|
|
|
|
|
|
|
int return_enum_constant() {
|
|
|
|
int result = aRoundShape;
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
|
|
|
|
enum Shape s = Triangle;
|