xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenCXX/forward-enum.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
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 Sambuc void bar(MyEnum value) { }
5*f4a2713aSLionel Sambuc 
6*f4a2713aSLionel Sambuc // CHECK-LABEL: define void @_Z3foo6MyEnum
foo(MyEnum value)7*f4a2713aSLionel Sambuc void foo(MyEnum value)
8*f4a2713aSLionel Sambuc {
9*f4a2713aSLionel Sambuc   // CHECK: call void @_Z3bar6MyEnum(i8 signext
10*f4a2713aSLionel Sambuc   bar(value);
11*f4a2713aSLionel Sambuc }
12