1 /* { dg-do compile } */
2 /* { dg-require-effective-target naked_functions } */
3 /* { dg-options "-O2 -fdump-tree-optimized" } */
5 static void __attribute__((naked
))
6 foo(void *from
, void *to
)
8 asm volatile("dummy"::"r"(from
), "r"(to
));
18 /* { dg-final { scan-tree-dump "foo \\\(void \\\* from, void \\\* to\\\)" "optimized" } } */