Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
pr59641.C
blob: 36af96a892d0ae096d64e99dfa0f8d9a35b91f21 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
typedef
int
T __attribute__
((
vector_size
(
2
*
sizeof
(
int
))));
void
foo
(
T
&
r
,
const
T
&
a
,
const
T
&
b
)
{
constexpr
T c
=
a
<
b
;
// { dg-error "constant" }
r
=
c
?
a
:
b
;
}