repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr52171.c
blob
45aeff6b8eb12a3a19cd0bef4bb5663694ad5811
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
}