llvm-project/clang/test/CodeGenCXX/implicit-function-conversion.cpp
Eli Friedman 62f3ef2b53 [CGCall] Annotate references with "align" attribute.
If we're going to assume references are dereferenceable, we should also
assume they're aligned: otherwise, we can't actually dereference them.

See also D80072.

Differential Revision: https://reviews.llvm.org/D80166
2020-05-19 20:21:30 -07:00

8 lines
226 B
C++

// RUN: %clang_cc1 -emit-llvm %s -o - -triple=x86_64-unknown-linux -std=c++17 | FileCheck %s
double a(double) noexcept;
int b(double (&)(double));
// CHECK: call i32 @_Z1bRFddE(double (double)* nonnull @_Z1ad)
int c = b(a);