comparison gcc/testsuite/gcc.dg/pr52171.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
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;
6
7 extern char s[], t[];
8
9 int foo ()
10 {
11 return memcmp (&a, &b, sizeof (struct A)) == 0;
12 }