Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-ellipsis2.C
blob: b6a5323b0f906dced9c74e7974f137c2b1ae712b [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
struct
A
{
A
();
A
(
const
A
&);
bool
empty
();
};
constexpr
int
ellipsis
(...)
{
return
1
;
}
static_assert
(
ellipsis
(
A
().
empty
()),
"Error"
);
// { dg-error "non-constant condition|empty" }