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