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
8 lines
226 B
C++
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);
|