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-c++-common/ubsan/align-7.c: Skip for -flto -fno-fat-lto-objects.
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
ubsan
/
save-expr-3.c
blob
dd2903bd68229d666a85ef8c8ceb758f8c900ff3
1
/* { dg-do compile } */
2
/* { dg-options "-fsanitize=shift -Wall -Werror -O" } */
3
4
int
x
;
5
6
int
7
foo
(
int
i
,
int
u
)
8
{
9
return
(
i
<<
u
) <<
x
;
10
}
11
12
int
13
bar
(
int
i
,
int
u
)
14
{
15
return
(
i
>>
u
) >>
x
;
16
}