1 // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11
7 void f(int, S
const&, int) {}
18 template<typename T
> struct Q
{ static T x
; };
21 template<> X Q
<X
>::x
{};
22 template<> int Q
<int[]>::x
[] { 1, 2, 3 };
23 template<> int Q
<int>::x
{ 1 };
25 template<typename T
> T Q
<T
>::x
{};
28 int conditional1
= 1 ? {} : 0; // expected-error {{initializer list cannot be used on the right hand side of operator '?'}}
29 int conditional2
= 1 ? 0 : {}; // expected-error {{initializer list cannot be used on the right hand side of operator ':'}}