diff options
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/Sema/invalid-decl.c | 2 | ||||
| -rw-r--r-- | clang/test/SemaOpenCL/half.cl | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/clang/test/Sema/invalid-decl.c b/clang/test/Sema/invalid-decl.c index 950d51deb4c..f0954b01b98 100644 --- a/clang/test/Sema/invalid-decl.c +++ b/clang/test/Sema/invalid-decl.c @@ -46,3 +46,5 @@ void test2() { } void test3(); void test3; // expected-error {{incomplete type}} void test3() { } + +void ellipsis1(...); // expected-error {{ISO C requires a named parameter before '...'}} diff --git a/clang/test/SemaOpenCL/half.cl b/clang/test/SemaOpenCL/half.cl index 0e6acb78c45..11abf64633b 100644 --- a/clang/test/SemaOpenCL/half.cl +++ b/clang/test/SemaOpenCL/half.cl @@ -3,7 +3,7 @@ #pragma OPENCL EXTENSION cl_khr_fp16 : disable half half_disabled(half *p, // expected-error{{declaring function return value of type 'half' is not allowed}} - half h) // expected-error{{declaring function argument of type 'half' is not allowed}} + half h) // expected-error{{declaring function parameter of type 'half' is not allowed}} { half a[2]; // expected-error{{declaring variable of type 'half [2]' is not allowed}} half b; // expected-error{{declaring variable of type 'half' is not allowed}} |

