[PATCH] D20139: [CUDA] Split device-var-init.cu tests into separate Sema and CodeGen parts.

Artem Belevich via cfe-commits cfe-commits at lists.llvm.org
Tue May 10 15:46:39 PDT 2016


tra added inline comments.

================
Comment at: test/SemaCUDA/device-var-init.cu:7-11
@@ -6,9 +6,7 @@
 // RUN: %clang_cc1 -triple nvptx64-nvidia-cuda -fcuda-is-device -std=c++11 \
-// RUN:     -fno-threadsafe-statics -emit-llvm -o - %s | FileCheck %s
-// RUN: %clang_cc1 -triple nvptx64-nvidia-cuda -fcuda-is-device -std=c++11 \
-// RUN:     -emit-llvm -DERROR_CASE -verify -o /dev/null %s
+// RUN:     -I %S/.. -fsyntax-only -verify -o /dev/null %s
 
-#ifdef __clang__
-#include "Inputs/cuda.h"
-#endif
+// Counterpart in CodeGen covers valid cases that pass Sema
+// checks. Here we'll only cover cases that trigger errors.
+#include "CodeGenCUDA/device-var-init.cu"
 
----------------
I wonder if it's OK for me to #include a file from another test directory?
Please let me know if you have concerns or suggestions.



http://reviews.llvm.org/D20139





More information about the cfe-commits mailing list