1 // RUN: %clang_cc1 -emit-llvm -triple wasm32-unknown-unknown %s -o - | \
2 // RUN: FileCheck -check-prefix CHECK-NOEXTRAALIGN %s
3 // RUN: %clang_cc1 -emit-llvm -triple wasm64-unknown-unknown %s -o - | \
4 // RUN: FileCheck -check-prefix CHECK-NOEXTRAALIGN %s
5 // RUN: %clang_cc1 -emit-llvm -triple ppc64le-unknown-linux-gnu %s -o - | \
6 // RUN: FileCheck -check-prefix CHECK-NOEXTRAALIGN %s
7 // RUN: %clang_cc1 -emit-llvm -triple arm64-unknown-linux-gnu %s -o - | \
8 // RUN: FileCheck -check-prefix CHECK-EXTRAALIGN %s
9 // RUN: %clang_cc1 -emit-llvm -triple arm64-apple-ios %s -o - | \
10 // RUN: FileCheck -check-prefix CHECK-EXTRAALIGN %s
11 // RUN: %clang_cc1 -emit-llvm -triple aarch64-unknown-linux-gnu %s -o - | \
12 // RUN: FileCheck -check-prefix CHECK-EXTRAALIGN %s
13 // RUN: %clang_cc1 -emit-llvm -triple mips-unknown-linux-gnu %s -o - | \
14 // RUN: FileCheck -check-prefix CHECK-EXTRAALIGN %s
15 // RUN: %clang_cc1 -emit-llvm -triple x86_64-unknown-fuchsia %s -o - | \
16 // RUN: FileCheck -check-prefix CHECK-EXTRAALIGN %s
17 // RUN: %clang_cc1 -emit-llvm -triple powerpc-unknown-aix %s -o - | \
18 // RUN: FileCheck -check-prefix CHECK-NOEXTRAALIGN %s
19 // RUN: %clang_cc1 -emit-llvm -triple x86_64-unknown-windows-msvc %s -o - | \
20 // RUN: FileCheck -check-prefix CHECK-MSVC %s
24 virtual void foo(void);
29 // The original alignment is observed if >=2, regardless of any extra alignment
30 // of member functions.
34 // CHECK-NOEXTRAALIGN: @_ZN1t3bazEv({{.*}}) #0 align 16 {
35 // CHECK-EXTRAALIGN: @_ZN1t3bazEv({{.*}}) #0 align 16 {
36 // CHECK-MSVC: @"?baz@t@@QEAAXXZ"({{.*}}) #0 align 16 {
41 // CHECK-NOEXTRAALIGN: @_ZN1t3barEv({{.*}}) #0 {
42 // CHECK-EXTRAALIGN: @_ZN1t3barEv({{.*}}) #0 align 2 {
43 // CHECK-MSVC: @"?bar@t@@QEAAXXZ"({{.*}}) #0 align 2 {
48 // CHECK-NOEXTRAALIGN: @_ZN1t3fooEv({{.*}}) unnamed_addr #0 {
49 // CHECK-EXTRAALIGN: @_ZN1t3fooEv({{.*}}) unnamed_addr #0 align 2 {
50 // CHECK-MSVC: @"?foo@t@@UEAAXXZ"({{.*}}) unnamed_addr #0 align 2 {