repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add execution tests of ARM EXT intrinsics
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-ellipsis2.C
blob
b6a5323b0f906dced9c74e7974f137c2b1ae712b
1
// { dg-do compile { target c++11 } }
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" }