[PATCH] D23335: [CUDA] Reject calls to __device__ functions from host variable global initializers.

Justin Lebar via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 9 16:39:41 PDT 2016


jlebar added inline comments.

================
Comment at: clang/test/SemaCUDA/global-initializers-host.cu:2
@@ +1,3 @@
+// RUN: %clang_cc1 %s --std=c++11 -triple x86_64-linux-unknown -emit-llvm -o - -verify
+
+#include "Inputs/cuda.h"
----------------
tra wrote:
> I'd add the same comment as in the other test file explaining why both -verify is used with -emit-llvm instead of -fsyntax-only.
Good call, I don't actually need it here.  :)


https://reviews.llvm.org/D23335





More information about the cfe-commits mailing list