[PATCH] D16502: [CUDA] Reject the alias attribute in CUDA device code.

Justin Lebar via cfe-commits cfe-commits at lists.llvm.org
Sat Jan 23 11:46:33 PST 2016


jlebar added inline comments.

================
Comment at: test/SemaCUDA/alias.cu:1-2
@@ +1,3 @@
+// REQUIRES: x86-registered-target
+// REQUIRES: nvptx-registered-target
+// RUN: %clang_cc1 -triple nvptx-unknown-cuda -fsyntax-only -fcuda-is-device -verify -DEXPECT_ERR %s
----------------
echristo wrote:
> Why does this require a registered target? Pretty sure TargetInfo should be able to cope with all of these.
Honestly I've been cargo-culting those lines from other SemaCUDA tests.  Would you mind elaborating on what they're for?


http://reviews.llvm.org/D16502





More information about the cfe-commits mailing list