[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / gcc.dg / pr52171.c
blob45aeff6b8eb12a3a19cd0bef4bb5663694ad5811
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3 /* { dg-final { scan-assembler-not "memcmp" } } */
4 #include <string.h>
5 struct A { int x; } a, b;
7 extern char s[], t[];
9 int foo ()
11 return memcmp (&a, &b, sizeof (struct A)) == 0;