// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --check-globals all --version 6 // RUN: %clang_cc1 -x cuda -triple x86_64-unknown-linux-gnu -aux-triple nvptx64-nvidia-cuda -emit-llvm %s -o - | FileCheck %s --check-prefix=HOST extern "C" { //. // HOST: @HostFunc = weak alias i32 (), ptr @__HostFunc //. // HOST-LABEL: define dso_local i32 @__HostFunc( // HOST-SAME: ) #[[ATTR0:[0-9]+]] { // HOST-NEXT: [[ENTRY:.*:]] // HOST-NEXT: ret i32 42 // int __HostFunc(void) { return 42; } int HostFunc(void) __attribute__ ((weak, alias("__HostFunc"))); }