llvm-for-llvmta/tools/clang/test/CodeGenCXX/unaligned.cpp

7 lines
189 B
C++
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// 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);
}