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
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ubsan
/
div-by-zero-2.C
blob
d500ae62b4b6d771159cb2e26902f148b78b2642
1
// PR sanitizer/80348
2
// { dg-do compile }
3
// { dg-options "-fsanitize=integer-divide-by-zero" }
4
5
void
6
foo ()
7
{
8
if (0)
9
unsigned ((0 != 60806) > (0 != 0)) / 0; // { dg-warning "division by zero" }
10
}