You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
464 B

// REQUIRES: x86-registered-target
// REQUIRES: nvptx-registered-target
// RUN: %clang_cc1 -fcuda-is-device -triple nvptx-nvidia-cuda -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; }
}
}