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
* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-initlist3.C
blob
912cf910ec63c2d24dae07a1edddbc8140818ff1
1
// { dg-do compile { target c++11 } }
2
3
#include <initializer_list>
4
#define SA(X) static_assert(X,#X)
5
6
constexpr int f(std::initializer_list<int> l) { return l.begin()[0]; }
7
8
int main()
9
{
10
constexpr int i = f({42});
11
SA(i==42);
12
}