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
Fix all tests that fail with -sanitize=return.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
tree-ssa
/
pr47707.C
blob
98852de17b887dc14f41a34838a11fc9c3784253
1
/* { dg-do run } */
2
/* { dg-options "-O2 -fno-tree-vrp" } */
3
#include <assert.h>
4
5
struct CH
6
{
7
unsigned char ch : 3;
8
} ch;
9
10
__attribute__((noinline)) void MakeCheckOp (unsigned int *v1, unsigned int *v2)
11
{
12
assert (*v1 == *v2);
13
14
}
15
16
int main (void)
17
{
18
19
int len;
20
21
for (len = 4; len >= 1; len--)
22
{
23
unsigned v1, v2;
24
ch.ch = len;
25
v1 = ch.ch;
26
v2 = len;
27
MakeCheckOp (&v1, &v2);
28
}
29
}