blob: 7926320fd021eaac0257fea14215cf490f456892 [file] [log] [blame]
Richard Smith4b082422012-09-18 00:52:05 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11
Andy Gibbs8e8fb3b2012-10-19 12:44:48 +00002// expected-no-diagnostics
Richard Smith4b082422012-09-18 00:52:05 +00003
4struct S {
5 S(int, int) {}
6};
7
8void f(int, S const&, int) {}
9
10void test1()
11{
12 S X1{1, 1,};
13 S X2 = {1, 1,};
14
15 f(0, {1, 1}, 0);
16}
Richard Smithd3e723e2013-01-15 06:49:38 +000017
18namespace PR14948 {
19 template<typename T> struct Q { static T x; };
20
21 struct X {};
22 template<> X Q<X>::x {};
23 template<> int Q<int[]>::x[] { 1, 2, 3 };
24 template<> int Q<int>::x { 1 };
25
26 template<typename T> T Q<T>::x {};
27}