blob: 92dc9007eb1932cd5dcb375b059f1d60c439e475 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 %s -verify -fsyntax-only
Anders Carlsson5bab7882009-02-19 19:16:48 +00002
3int a __attribute__((noinline)); // expected-warning {{'noinline' attribute only applies to function types}}
4
5void t1() __attribute__((noinline));
6
7void t2() __attribute__((noinline(2))); // expected-error {{attribute requires 0 argument(s)}}
8