diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2017-06-29 10:47:23 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2017-06-29 10:47:23 +0000 |
commit | ba2af70d9cfaddc5b8c2fa6e2a55387025b8f3ee (patch) | |
tree | 81e5f8e89fd298c9a4b4c7a76d3622ca9561c144 /test/SemaOpenCL | |
parent | 3f3ec7612cf8bfa97841100cbf8a70b92d5c3c40 (diff) |
Revert r306653, "[OpenCL] Allow function declaration with empty argument list."
It broke bots.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@306660 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaOpenCL')
-rw-r--r-- | test/SemaOpenCL/function-no-args.cl | 9 | ||||
-rw-r--r-- | test/SemaOpenCL/invalid-pipes-cl2.0.cl | 2 |
2 files changed, 1 insertions, 10 deletions
diff --git a/test/SemaOpenCL/function-no-args.cl b/test/SemaOpenCL/function-no-args.cl deleted file mode 100644 index 12070a5858..0000000000 --- a/test/SemaOpenCL/function-no-args.cl +++ /dev/null @@ -1,9 +0,0 @@ -// RUN: %clang_cc1 -verify -pedantic -fsyntax-only -cl-std=CL2.0 %s -// expected-no-diagnostics - -global int gi; -int my_func(); -int my_func() { - gi = 2; - return gi; -} diff --git a/test/SemaOpenCL/invalid-pipes-cl2.0.cl b/test/SemaOpenCL/invalid-pipes-cl2.0.cl index 463fd3d0da..a50811650d 100644 --- a/test/SemaOpenCL/invalid-pipes-cl2.0.cl +++ b/test/SemaOpenCL/invalid-pipes-cl2.0.cl @@ -3,7 +3,7 @@ global pipe int gp; // expected-error {{type '__global read_only pipe int' can only be used as a function parameter in OpenCL}} global reserve_id_t rid; // expected-error {{the '__global reserve_id_t' type cannot be used to declare a program scope variable}} -extern pipe write_only int get_pipe(); // expected-error {{type '__global write_only pipe int (void)' can only be used as a function parameter in OpenCL}} +extern pipe write_only int get_pipe(); // expected-error {{type '__global write_only pipe int ()' can only be used as a function parameter in OpenCL}} kernel void test_invalid_reserved_id(reserve_id_t ID) { // expected-error {{'reserve_id_t' cannot be used as the type of a kernel parameter}} } |