Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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" }