1 /* { dg-do compile }
2    { dg-options "-fdump-tree-gimple" } */
3 
4 __attribute__ ((aligned (32)))
5 __attribute__ ((access (write_only, 2, 1)))
f(int n,void * p)6 void f (int n, void *p)
7 {
8   __builtin_memset (p, 0, n);
9 }
10 
11 /* Verify the DECL_ATTRIBUTE "aligned" is mentioned:
12    { dg-final { scan-tree-dump "__attribute__\\(\\(aligned" "gimple" } }
13    and the TYPE_ATTRIBUTE "access" is also mentioned:
14    { dg-final { scan-tree-dump "__attribute__\\(\\(access" "gimple" } }
15    and the function signature including its return type is mentioned:
16    { dg-final { scan-tree-dump "void f *\\(int n, void *\\* *p\\)" "gimple" } } */
17