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