[flang] Fix crash in HLFIR generation (#118399)
[llvm-project.git] / clang / test / CodeGen / memcpy-no-nobuiltin-if-not-emitted.cpp
blobdc7b32073d5d2d949d062a77de0f6e4e8b31d980
1 // RUN: %clang_cc1 -triple i686-linux-gnu -std=c++11 -emit-llvm -o - %s | FileCheck %s
2 //
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