llvm-project/clang/test/Sema/attr-minsize.c

6 lines
208 B
C

// RUN: %clang_cc1 -fsyntax-only -verify %s
int foo() __attribute__((__minsize__));
int var1 __attribute__((__minsize__)); // expected-error{{'__minsize__' attribute only applies to functions and methods}}