1// RUN: %clang_cc1 %s -verify -fsyntax-only
2
3int __attribute__((kernel)) g;               // expected-warning {{'kernel' attribute only applies to functions}}
4
5int __attribute__((kernel)) f1(void) {       // expected-warning {{'kernel' attribute ignored}}
6  return 0;
7}
8
9int __attribute__((kernel(1, 2))) f2(void) { // expected-error {{'kernel' attribute takes no more than 1 argument}}
10  return 0;
11}
12