OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR c++/50941
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-ellipsis2.C
1
// { dg-options -std=c++0x }
2
3
struct A
4
{
5
A();
6
A(const A&);
7
bool empty();
8
};
9
10
constexpr int ellipsis(...) { return 1; }
11
12
static_assert(ellipsis(A().empty()), "Error"); // { dg-error "non-constant condition|empty" }