aboutsummaryrefslogtreecommitdiff
path: root/clang/test/SemaOpenCL
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2022-04-01 10:31:59 -0400
committerAaron Ballman <aaron@aaronballman.com>2022-04-01 10:32:46 -0400
commitcd55e51516f03203f3bf632ff4a65ae7518a8319 (patch)
tree128b478cda40a5017edd454b555cc80a9a6eb97a /clang/test/SemaOpenCL
parent34135ae9e2b31e2cf4d144e0627094aed3cb3e78 (diff)
downloadllvm-cd55e51516f03203f3bf632ff4a65ae7518a8319.zip
llvm-cd55e51516f03203f3bf632ff4a65ae7518a8319.tar.gz
llvm-cd55e51516f03203f3bf632ff4a65ae7518a8319.tar.bz2
Add prototypes to functions which need them; NFC
Diffstat (limited to 'clang/test/SemaOpenCL')
-rw-r--r--clang/test/SemaOpenCL/numbered-address-space.cl4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/SemaOpenCL/numbered-address-space.cl b/clang/test/SemaOpenCL/numbered-address-space.cl
index ab824ac..8fbf01c 100644
--- a/clang/test/SemaOpenCL/numbered-address-space.cl
+++ b/clang/test/SemaOpenCL/numbered-address-space.cl
@@ -9,12 +9,12 @@ void test_numeric_as_to_generic_explicit_cast(__attribute__((address_space(3)))
generic int* generic_ptr = (generic int*) as3_ptr; // Should maybe be valid?
}
-void test_generic_to_numeric_as_implicit_cast() {
+void test_generic_to_numeric_as_implicit_cast(void) {
generic int* generic_ptr = 0;
__attribute__((address_space(3))) int *as3_ptr = generic_ptr; // expected-error{{initializing '__attribute__((address_space(3))) int *__private' with an expression of type '__generic int *__private' changes address space of pointer}}
}
-void test_generic_to_numeric_as_explicit_cast() {
+void test_generic_to_numeric_as_explicit_cast(void) {
generic int* generic_ptr = 0;
__attribute__((address_space(3))) int *as3_ptr = (__attribute__((address_space(3))) int *)generic_ptr;
}