Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
ext
/
builtin-arith-overflow-1.C
blob: e0c93e54f55b91c35e5bf0c3aa4fd15228ef0a3e [
file
] [
log
] [
blame
]
// { dg-do compile }
enum
A
{
B
=
1
,
C
=
2
,
D
=
__builtin_add_overflow_p
(
B
,
C
,
0
)
};
int
e
[
__builtin_add_overflow_p
(
B
,
C
,
0
)
+
1
];
template
<
int
N
>
int
foo
(
int
);
void
bar
()
{
foo
<
__builtin_add_overflow_p
(
B
,
C
,
0
)
+
1
>
(
0
);
}