1 // RUN: %clang_cc1 -triple i686-linux-gnu -std=c++11 -emit-llvm -o - %s | FileCheck %s
3 // Regression test for the issue reported at
4 // https://reviews.llvm.org/D78162#1986104
6 typedef unsigned long size_t;
8 extern "C" __inline__
__attribute__((__gnu_inline__
)) void *memcpy(void *a
, const void *b
, unsigned c
) {
9 return __builtin_memcpy(a
, b
, c
);
11 void *memcpy(void *, const void *, unsigned);
13 // CHECK-LABEL: define{{.*}} void @_Z1av
14 void a() { (void)memcpy
; }
16 // CHECK-NOT: nobuiltin