diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2014-11-24 09:15:30 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2014-11-24 09:15:30 +0000 |
| commit | 9f4dbff6669c8037f3b036bcf580d14f1a4f12a5 (patch) | |
| tree | 47df2c12b57214af6c31e47404b005675b8b7ffc /test/CodeGenCXX/arm64-darwinpcs.cpp | |
| parent | f73d5f23a889b93d89ddef61ac0995df40286bb8 (diff) | |
Notes
Diffstat (limited to 'test/CodeGenCXX/arm64-darwinpcs.cpp')
| -rw-r--r-- | test/CodeGenCXX/arm64-darwinpcs.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGenCXX/arm64-darwinpcs.cpp b/test/CodeGenCXX/arm64-darwinpcs.cpp new file mode 100644 index 0000000000000..0a0ec3af49cfb --- /dev/null +++ b/test/CodeGenCXX/arm64-darwinpcs.cpp @@ -0,0 +1,15 @@ +// 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) {} +// CHECK: define void @_Z15test_extensionsbcs(i1 %a, i8 %b, i16 %c) +// CHECK-DARWIN: define void @_Z15test_extensionsbcs(i1 zeroext %a, i8 signext %b, i16 signext %c) + +struct Empty {}; +void test_empty(Empty e) {} +// CHECK: define void @_Z10test_empty5Empty(i8 +// CHECK-DARWIN: define void @_Z10test_empty5Empty() + +struct HFA { + float a[3]; +}; |
