~shimon/dismaltc

ref: 461e0617cb03f1d5027af4fbb3da0722791022e9 dismaltc/clang/disable-test/CodeGenCUDA/alias.cu -rw-r--r-- 599 bytes
461e0617Itoh Shimon re-enable tests. 1 year, 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// 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; }
}
}