summaryrefslogtreecommitdiffstats
path: root/test/Sema/attr-minsize.c
blob: 7b1c6ae66f1bbed5032ebcf39389ce378832d335 (plain)
1
2
3
4
5
// 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}}