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
Merged revisions 208012,208018-208019,208021,208023-208030,208033,208037,208040-20804...
[official-gcc.git]
/
main
/
gcc
/
testsuite
/
c-c++-common
/
ubsan
/
shift-3.c
blob
65ee5d8821e06adeded76a99492040c712d21fe1
1
/* { dg-do run } */
2
/* { dg-options "-fsanitize=shift -w" } */
3
4
#include <stdio.h>
5
6
int
7
main
(
void
)
8
{
9
fputs
(
"UBSAN TEST START
\n
"
,
stderr
);
10
11
unsigned int
a
=
1
;
12
a
<<=
31
;
13
a
<<=
1
;
14
15
fputs
(
"UBSAN TEST END
\n
"
,
stderr
);
16
return
0
;
17
}
18
19
/* { dg-output "UBSAN TEST START(\n|\r\n|\r)UBSAN TEST END" } */