1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -std=c++11 -triple x86_64-apple-darwin11.0.0 -emit-llvm -o - %s | FileCheck %s 2*f4a2713aSLionel Sambuc 3*f4a2713aSLionel Sambuc enum MyEnum : char; bar(MyEnum value)4*f4a2713aSLionel Sambucvoid bar(MyEnum value) { } 5*f4a2713aSLionel Sambuc 6*f4a2713aSLionel Sambuc // CHECK-LABEL: define void @_Z3foo6MyEnum foo(MyEnum value)7*f4a2713aSLionel Sambucvoid foo(MyEnum value) 8*f4a2713aSLionel Sambuc { 9*f4a2713aSLionel Sambuc // CHECK: call void @_Z3bar6MyEnum(i8 signext 10*f4a2713aSLionel Sambuc bar(value); 11*f4a2713aSLionel Sambuc } 12