// RUN: %clang_cc1 -triple=x86_64-linux-gnu -emit-llvm -o - -std=c++17 %s | FileCheck %s --implicit-check-not=@_ZSt4move
;
extern "C" void ;
extern "C" void ;
T a;
// Check emission of a constant-evaluated call.
// CHECK-DAG: @move_a = constant ptr @a
T &&move_a = ;
// CHECK-DAG: @move_if_noexcept_a = constant ptr @a
T &&move_if_noexcept_a = ;
// CHECK-DAG: @forward_a = constant ptr @a
T &forward_a = std::forward<T&>;
// Check emission of a non-constant call.
// CHECK-LABEL: define {{.*}} void @test
extern "C" void
// CHECK: declare {{.*}} @_ZSt4moveI1TS0_ET_T0_S2_S1_
// Check that we instantiate and emit if the address is taken.
// CHECK-LABEL: define {{.*}} @use_address
extern "C" void *
// CHECK: define {{.*}} ptr @_ZSt4moveIiEOT_RS0_(ptr
extern "C" void ;
// CHECK-LABEL: define {{.*}} @move_const_int(
extern "C" void