17 lines · cpp
1// RUN: %clang_cc1 -triple i686-linux-gnu -std=c++11 -emit-llvm -o - %s | FileCheck %s2//3// Regression test for the issue reported at4// https://reviews.llvm.org/D78162#19861045 6typedef unsigned long size_t;7 8extern "C" __inline__ __attribute__((__gnu_inline__)) void *memcpy(void *a, const void *b, unsigned c) {9 return __builtin_memcpy(a, b, c);10}11void *memcpy(void *, const void *, unsigned);12 13// CHECK-LABEL: define{{.*}} void @_Z1av14void a() { (void)memcpy; }15 16// CHECK-NOT: nobuiltin17