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

Artem Belevich via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 9 15:22:14 PDT 2016

tra accepted this revision.
tra added a comment.
This revision is now accepted and ready to land.


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"
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.


More information about the cfe-commits mailing list