summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/SemaCUDA/exceptions-host-device.cu8
-rw-r--r--clang/test/SemaCUDA/exceptions.cu8
2 files changed, 8 insertions, 8 deletions
diff --git a/clang/test/SemaCUDA/exceptions-host-device.cu b/clang/test/SemaCUDA/exceptions-host-device.cu
index 3f323469ac1..9e18634e905 100644
--- a/clang/test/SemaCUDA/exceptions-host-device.cu
+++ b/clang/test/SemaCUDA/exceptions-host-device.cu
@@ -14,8 +14,8 @@ __host__ __device__ void hd1() {
throw NULL;
try {} catch(void*) {}
#ifndef HOST
- // expected-error@-3 {{cannot use 'throw' in __host__ __device__ function 'hd1'}}
- // expected-error@-3 {{cannot use 'try' in __host__ __device__ function 'hd1'}}
+ // expected-error@-3 {{cannot use 'throw' in __host__ __device__ function}}
+ // expected-error@-3 {{cannot use 'try' in __host__ __device__ function}}
#endif
}
@@ -31,8 +31,8 @@ inline __host__ __device__ void hd3() {
throw NULL;
try {} catch(void*) {}
#ifndef HOST
- // expected-error@-3 {{cannot use 'throw' in __host__ __device__ function 'hd3'}}
- // expected-error@-3 {{cannot use 'try' in __host__ __device__ function 'hd3'}}
+ // expected-error@-3 {{cannot use 'throw' in __host__ __device__ function}}
+ // expected-error@-3 {{cannot use 'try' in __host__ __device__ function}}
#endif
}
__device__ void call_hd3() { hd3(); }
diff --git a/clang/test/SemaCUDA/exceptions.cu b/clang/test/SemaCUDA/exceptions.cu
index 75586bc4a97..9ed9b697720 100644
--- a/clang/test/SemaCUDA/exceptions.cu
+++ b/clang/test/SemaCUDA/exceptions.cu
@@ -9,13 +9,13 @@ void host() {
}
__device__ void device() {
throw NULL;
- // expected-error@-1 {{cannot use 'throw' in __device__ function 'device'}}
+ // expected-error@-1 {{cannot use 'throw' in __device__ function}}
try {} catch(void*) {}
- // expected-error@-1 {{cannot use 'try' in __device__ function 'device'}}
+ // expected-error@-1 {{cannot use 'try' in __device__ function}}
}
__global__ void kernel() {
throw NULL;
- // expected-error@-1 {{cannot use 'throw' in __global__ function 'kernel'}}
+ // expected-error@-1 {{cannot use 'throw' in __global__ function}}
try {} catch(void*) {}
- // expected-error@-1 {{cannot use 'try' in __global__ function 'kernel'}}
+ // expected-error@-1 {{cannot use 'try' in __global__ function}}
}
OpenPOWER on IntegriCloud