libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / attr-access-5.c
blobe78b3602ade00a85b3eab80fe32f6b68f6a37a6d
1 /* { dg-do compile }
2 { dg-options "-fdump-tree-gimple" } */
4 __attribute__ ((aligned (32)))
5 __attribute__ ((access (write_only, 2, 1)))
6 void f (int n, void *p)
8 __builtin_memset (p, 0, n);
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" } } */