1// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s 2 3// PR8839 4extern "C" char memmove(); 5 6int main() { 7 // CHECK: call {{signext i8|i8}} @memmove() 8 return memmove(); 9} 10 11struct S; 12// CHECK: define {{.*}} @_Z9addressofbR1SS0_( 13S *addressof(bool b, S &s, S &t) { 14 // CHECK: %[[LVALUE:.*]] = phi 15 // CHECK: ret {{.*}}* %[[LVALUE]] 16 return __builtin_addressof(b ? s : t); 17} 18