r261775 - [CUDA] Don't specify exact line numbers in cuda-builtin-vars.cu.

Justin Lebar via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 24 13:49:30 PST 2016


Author: jlebar
Date: Wed Feb 24 15:49:30 2016
New Revision: 261775

URL: http://llvm.org/viewvc/llvm-project?rev=261775&view=rev
Log:
[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.

Modified:
    cfe/trunk/test/SemaCUDA/cuda-builtin-vars.cu

Modified: cfe/trunk/test/SemaCUDA/cuda-builtin-vars.cu
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCUDA/cuda-builtin-vars.cu?rev=261775&r1=261774&r2=261775&view=diff
==============================================================================
--- cfe/trunk/test/SemaCUDA/cuda-builtin-vars.cu (original)
+++ cfe/trunk/test/SemaCUDA/cuda-builtin-vars.cu Wed Feb 24 15:49:30 2016
@@ -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 at cuda_builtin_vars.h:104 {{variable 'warpSize' declared const here}}
+  // expected-note at 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 at cuda_builtin_vars.h:67 {{declared private here}}
+  // expected-note at 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 at cuda_builtin_vars.h:67 {{declared private here}}
+  // expected-note at cuda_builtin_vars.h:* {{declared private here}}
 
   threadIdx = threadIdx; // expected-error {{'operator=' is a private member of '__cuda_builtin_threadIdx_t'}}
-  // expected-note at cuda_builtin_vars.h:67 {{declared private here}}
+  // expected-note at cuda_builtin_vars.h:* {{declared private here}}
 
   void *ptr = &threadIdx; // expected-error {{'operator&' is a private member of '__cuda_builtin_threadIdx_t'}}
-  // expected-note at cuda_builtin_vars.h:67 {{declared private here}}
+  // expected-note at 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




More information about the cfe-commits mailing list