| // RUN: %clang_cc1 -fsyntax-only -verify -x renderscript -D__RENDERSCRIPT__ %s |
| // RUN: %clang_cc1 -fsyntax-only -verify -x c %s |
| // expected-warning@+2 {{'kernel' attribute ignored}} |
| void __attribute__((kernel)) kernel() {} |
| // expected-warning@+4 {{'kernel' attribute ignored}} |
| // expected-warning@+2 {{'kernel' attribute only applies to functions}} |
| int __attribute__((kernel)) global; |
| // expected-error@+2 {{function return value cannot have __fp16 type; did you forget * ?}} |
| // expected-error@+2 {{parameters cannot have __fp16 type; did you forget * ?}} |