summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/sfinae19.C
blob: be96983bf39919e15e6db19b9ea2b34eb414ec41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/48737
// { dg-options "-std=c++0x" }

template<class T>
T&& create();

template<class T, class... Args>
decltype(T{create<Args>()...}, char()) f(int);

template<class, class...>
char (&f(...))[2];

static_assert(sizeof(f<int[1], int, int>(0)) != 1, "Error");