mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-19 11:35:51 -04:00

Patch by Greg Rodgers. Revised and lit test added by Yaxun Liu. Differential Revision: https://reviews.llvm.org/D44987 llvm-svn: 328793
21 lines
599 B
Plaintext
21 lines
599 B
Plaintext
// REQUIRES: x86-registered-target
|
|
// REQUIRES: nvptx-registered-target
|
|
// REQUIRES: amdgpu-registered-target
|
|
|
|
// RUN: %clang_cc1 -fcuda-is-device -triple nvptx-nvidia-cuda -emit-llvm \
|
|
// RUN: -o - %s | FileCheck %s
|
|
// RUN: %clang_cc1 -fcuda-is-device -triple amdgcn -emit-llvm \
|
|
// RUN: -o - %s | FileCheck %s
|
|
|
|
#include "Inputs/cuda.h"
|
|
|
|
// Check that we don't generate an alias from "foo" to the mangled name for
|
|
// ns::foo() -- nvptx doesn't support aliases.
|
|
|
|
namespace ns {
|
|
extern "C" {
|
|
// CHECK-NOT: @foo = internal alias
|
|
__device__ __attribute__((used)) static int foo() { return 0; }
|
|
}
|
|
}
|