1*67e74705SXin Li // RUN: %clang_cc1 %s -verify -fsyntax-only 2*67e74705SXin Li 3*67e74705SXin Li int a __attribute__((nodebug)); 4*67e74705SXin Li b(int p)5*67e74705SXin Livoid b(int p __attribute__((nodebug))) { // expected-warning {{'nodebug' attribute only applies to variables and functions}} 6*67e74705SXin Li int b __attribute__((nodebug)); 7*67e74705SXin Li } 8*67e74705SXin Li 9*67e74705SXin Li void t1() __attribute__((nodebug)); 10*67e74705SXin Li 11*67e74705SXin Li void t2() __attribute__((nodebug(2))); // expected-error {{'nodebug' attribute takes no arguments}} 12