1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -emit-llvm -o - %s -O2 | grep "ret i32 1" 2*f4a2713aSLionel Sambuctypedef long Integer; 3*f4a2713aSLionel Sambuctypedef enum : Integer { Red, Green, Blue} Color; 4*f4a2713aSLionel Sambuctypedef enum { Cyan, Magenta, Yellow, Key } PrintColor; 5*f4a2713aSLionel Sambuc 6*f4a2713aSLionel Sambucint a() { 7*f4a2713aSLionel Sambuc return @encode(int) == @encode(int) && 8*f4a2713aSLionel Sambuc @encode(Color) == @encode(long) && 9*f4a2713aSLionel Sambuc @encode(PrintColor) == @encode(int); 10*f4a2713aSLionel Sambuc} 11