From: Justin Lebar Date: Wed, 24 Feb 2016 21:49:30 +0000 (+0000) Subject: [CUDA] Don't specify exact line numbers in cuda-builtin-vars.cu. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e672b73d4c186bd08189ec473f6ad43f21920165;p=clang [CUDA] Don't specify exact line numbers in cuda-builtin-vars.cu. This makes the test less fragile to changes to cuda_builtin_vars.h. Test-only change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@261775 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/SemaCUDA/cuda-builtin-vars.cu b/test/SemaCUDA/cuda-builtin-vars.cu index 97c5111ceb..108e75cae7 100644 --- a/test/SemaCUDA/cuda-builtin-vars.cu +++ b/test/SemaCUDA/cuda-builtin-vars.cu @@ -34,20 +34,20 @@ void kernel(int *out) { out[i++] = warpSize; warpSize = 0; // expected-error {{cannot assign to variable 'warpSize' with const-qualified type 'const int'}} - // expected-note@cuda_builtin_vars.h:104 {{variable 'warpSize' declared const here}} + // expected-note@cuda_builtin_vars.h:* {{variable 'warpSize' declared const here}} // Make sure we can't construct or assign to the special variables. __cuda_builtin_threadIdx_t x; // expected-error {{calling a private constructor of class '__cuda_builtin_threadIdx_t'}} - // expected-note@cuda_builtin_vars.h:67 {{declared private here}} + // expected-note@cuda_builtin_vars.h:* {{declared private here}} __cuda_builtin_threadIdx_t y = threadIdx; // expected-error {{calling a private constructor of class '__cuda_builtin_threadIdx_t'}} - // expected-note@cuda_builtin_vars.h:67 {{declared private here}} + // expected-note@cuda_builtin_vars.h:* {{declared private here}} threadIdx = threadIdx; // expected-error {{'operator=' is a private member of '__cuda_builtin_threadIdx_t'}} - // expected-note@cuda_builtin_vars.h:67 {{declared private here}} + // expected-note@cuda_builtin_vars.h:* {{declared private here}} void *ptr = &threadIdx; // expected-error {{'operator&' is a private member of '__cuda_builtin_threadIdx_t'}} - // expected-note@cuda_builtin_vars.h:67 {{declared private here}} + // expected-note@cuda_builtin_vars.h:* {{declared private here}} // Following line should've caused an error as one is not allowed to // take address of a built-in variable in CUDA. Alas there's no way