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
* doc/extend.texi (Loop-Specific Pragmas): Document pragma GCC unroll.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ext
/
builtin-arith-overflow-1.C
blob
e0c93e54f55b91c35e5bf0c3aa4fd15228ef0a3e
1
// { dg-do compile }
2
3
enum A { B = 1, C = 2, D = __builtin_add_overflow_p (B, C, 0) };
4
int e[__builtin_add_overflow_p (B, C, 0) + 1];
5
template <int N> int foo (int);
6
7
void
8
bar ()
9
{
10
foo <__builtin_add_overflow_p (B, C, 0) + 1> (0);
11
}