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
PR c++/85765 - SFINAE and non-type default template arg.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist34.C
blob
335a7dab8e0828891db790ad68e4f431834c52cd
1
// PR c++/44157
2
// { dg-do compile { target c++11 } }
3
4
#include <initializer_list>
5
6
template<typename T>
7
void f(T) { }
8
9
int main() {
10
std::initializer_list<int> a = { 0 };
11
f(a);
12
13
f<std::initializer_list<int> >({ 0 });
14
}