PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / gcc.dg / pr44290-2.c
blob073351091149a97f448c743cdf08c037f6cfdf65
1 /* { dg-do compile } */
2 /* { dg-require-effective-target naked_functions } */
3 /* { dg-options "-O2 -fdump-tree-optimized" } */
5 static unsigned long __attribute__((naked))
6 foo (unsigned long base)
8 asm volatile ("dummy");
10 unsigned long
11 bar (void)
13 static int start, set;
15 if (!set)
17 set = 1;
18 start = foo (0);
21 return foo (start);
24 /* { dg-final { scan-tree-dump "foo \\\(long unsigned int base\\\)" "optimized" } } */