brintos

brintos / llvm-project-archived public Read only

0
0
Text · 319 B · a0350e6 Raw
7 lines · plain
1// RUN: %clang_cc1 -triple nvptx-unknown-cuda -fsyntax-only -fcuda-is-device -target-sdk-version=9.0 -verify %s2 3// The alias attribute is not allowed in CUDA device code before 10.0.4extern "C" void bar();5__attribute__((alias("bar"))) void foo();6// expected-error@-1 {{CUDA older than 10.0 does not support .alias}}7