opnsense-src/test/PCH/enum.c

16 lines
331 B
C
Raw Normal View History

2009-06-02 13:58:47 -04:00
// Test this without pch.
2010-01-01 05:34:51 -05:00
// RUN: %clang_cc1 -include %S/enum.h -fsyntax-only -verify %s
2009-06-02 13:58:47 -04:00
// Test with pch.
2010-01-01 05:34:51 -05:00
// RUN: %clang_cc1 -emit-pch -o %t %S/enum.h
// RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %s
2009-06-02 13:58:47 -04:00
int i = Red;
int return_enum_constant() {
int result = aRoundShape;
return result;
}
enum Shape s = Triangle;