You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
401 B

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