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 Sambucint 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