* fi.po: Update.
[official-gcc.git] / gcc / testsuite / gcc.dg / pr69172.c
blobc0e74633834ca2fc8b51342e7396142d196be4d0
1 /* PR tree-optimization/69172 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2" } */
5 int a;
7 void *
8 f1 (void)
10 int *b = &a, *c = &a;
11 return __builtin___mempcpy_chk (b, c, sizeof (int), 0);
14 void *
15 f2 (void)
17 int *b = &a;
18 return __builtin___mempcpy_chk (b, b, sizeof (int), 0);
21 void *
22 f3 (void)
24 return __builtin___mempcpy_chk (&a, &a, sizeof (int), 0);
27 void *
28 f4 (int x)
30 int *b = &a, *c = &a;
31 return __builtin___mempcpy_chk (b, c, x, 0);
34 void *
35 f5 (int x)
37 int *b = &a;
38 return __builtin___mempcpy_chk (b, b, x, 0);
41 void *
42 f6 (int x)
44 return __builtin___mempcpy_chk (&a, &a, x, 0);