2014-03-29 23:09:45 +08:00
|
|
|
// RUN: %clang_cc1 -triple arm64-linux-gnu -emit-llvm -o - %s | FileCheck %s
|
|
|
|
// RUN: %clang_cc1 -triple arm64-linux-gnu -emit-llvm -o - %s -target-abi darwinpcs | FileCheck %s --check-prefix=CHECK-DARWIN
|
|
|
|
|
|
|
|
void test_extensions(bool a, char b, short c) {}
|
2022-01-16 17:53:11 +08:00
|
|
|
// CHECK: define{{.*}} void @_Z15test_extensionsbcs(i1 noundef %a, i8 noundef %b, i16 noundef %c)
|
|
|
|
// CHECK-DARWIN: define{{.*}} void @_Z15test_extensionsbcs(i1 noundef zeroext %a, i8 noundef signext %b, i16 noundef signext %c)
|
2014-03-29 23:09:45 +08:00
|
|
|
|
|
|
|
struct Empty {};
|
|
|
|
void test_empty(Empty e) {}
|
2020-12-31 16:27:11 +08:00
|
|
|
// CHECK: define{{.*}} void @_Z10test_empty5Empty(i8
|
|
|
|
// CHECK-DARWIN: define{{.*}} void @_Z10test_empty5Empty()
|
2014-03-29 23:09:45 +08:00
|
|
|
|
|
|
|
struct HFA {
|
|
|
|
float a[3];
|
|
|
|
};
|