2017-12-05 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr44290-1.c
blob05d2454fc31851e5b83217cc6f92e03728c49722
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));
11 unsigned int fie[2];
13 void fum(void *to)
15 foo(fie, to);
18 /* { dg-final { scan-tree-dump "foo \\\(void \\\* from, void \\\* to\\\)" "optimized" } } */