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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits