mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-28 09:46:06 +00:00

This patch honors the unaligned type qualifier (currently available through he keyword __unaligned and -fms-extensions) in CodeGen. In the current form the patch affects declarations and expressions. It does not affect fields of classes. Differential Revision: https://reviews.llvm.org/D30166 llvm-svn: 297276
7 lines
189 B
C++
7 lines
189 B
C++
// RUN: %clang_cc1 -x c++ -std=c++11 -triple x86_64-unknown-linux-gnu -fms-extensions -emit-llvm < %s | FileCheck %s
|
|
|
|
int foo() {
|
|
// CHECK: ret i32 1
|
|
return alignof(__unaligned int);
|
|
}
|