blob: cadf9d6c186a298958ea26b838c1478f9f42a0e6 [file] [log] [blame]
Daniel Dunbar8fbe78f2009-12-15 20:14:24 +00001// RUN: %clang_cc1 %s -verify -fsyntax-only
Anders Carlsson88097122009-02-19 19:16:48 +00002
John McCall4bb48362011-01-25 03:51:08 +00003int a __attribute__((noinline)); // expected-warning {{'noinline' attribute only applies to functions}}
Anders Carlsson88097122009-02-19 19:16:48 +00004
5void t1() __attribute__((noinline));
6
Aaron Ballmanb7243382013-07-23 19:30:11 +00007void t2() __attribute__((noinline(2))); // expected-error {{'noinline' attribute takes no arguments}}
Anders Carlsson88097122009-02-19 19:16:48 +00008