2014-06-29 07:34:11 +08:00
|
|
|
// RUN: %clang_cc1 -triple i686-windows-itanium -emit-llvm %s -o - \
|
|
|
|
// RUN: | FileCheck %s -check-prefix CHECK-C -check-prefix CHECK
|
|
|
|
|
|
|
|
// RUN: %clang_cc1 -triple i686-windows-itanium -emit-llvm -x c++ %s -o - \
|
|
|
|
// RUN: | FileCheck %s -check-prefix CHECK-CXX -check-prefix CHECK
|
|
|
|
|
|
|
|
int function() {
|
|
|
|
return 32;
|
|
|
|
}
|
|
|
|
|
2018-02-24 03:30:48 +08:00
|
|
|
// CHECK-C: define dso_local i32 @function() {{.*}} {
|
2021-11-09 01:09:49 +08:00
|
|
|
// CHECK-CXX: define dso_local i32 @_Z8functionv() {{.*}} {
|
2014-06-29 07:34:11 +08:00
|
|
|
// CHECK: ret i32 32
|
|
|
|
// CHECK: }
|
|
|
|
|