xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/windows-itanium.c (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -triple i686-windows-itanium -emit-llvm %s -o - \
2*0a6a1f1dSLionel Sambuc // RUN:    | FileCheck %s -check-prefix CHECK-C -check-prefix CHECK
3*0a6a1f1dSLionel Sambuc 
4*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -triple i686-windows-itanium -emit-llvm -x c++ %s -o - \
5*0a6a1f1dSLionel Sambuc // RUN:    | FileCheck %s -check-prefix CHECK-CXX -check-prefix CHECK
6*0a6a1f1dSLionel Sambuc 
function()7*0a6a1f1dSLionel Sambuc int function() {
8*0a6a1f1dSLionel Sambuc   return 32;
9*0a6a1f1dSLionel Sambuc }
10*0a6a1f1dSLionel Sambuc 
11*0a6a1f1dSLionel Sambuc // CHECK-C: define i32 @function() {{.*}} {
12*0a6a1f1dSLionel Sambuc // CHECK-CXX: define i32 @_Z8functionv() {{.*}} {
13*0a6a1f1dSLionel Sambuc // CHECK:   ret i32 32
14*0a6a1f1dSLionel Sambuc // CHECK: }
15*0a6a1f1dSLionel Sambuc 
16