• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // REQUIRES: x86-registered-target
2 // REQUIRES: nvptx-registered-target
3 
4 // RUN: %clang_cc1 -fcuda-is-device -triple nvptx-nvidia-cuda -emit-llvm \
5 // RUN:   -o - %s | FileCheck %s
6 
7 #include "Inputs/cuda.h"
8 
9 // Check that we don't generate an alias from "foo" to the mangled name for
10 // ns::foo() -- nvptx doesn't support aliases.
11 
12 namespace ns {
13 extern "C" {
14 // CHECK-NOT: @foo = internal alias
foo()15 __device__ __attribute__((used)) static int foo() { return 0; }
16 }
17 }
18