Daily bump.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / dr2351.C
blob5116dfe104ecb4b56e72b18ea725678eb0ca6482
1 // DR2351
2 // { dg-do compile { target c++11 } }
4 void
5 foo ()
7   void{};
8   void();
11 template <class ...T>
12 void
13 bar (T... t)
15   void{t...};
16   void(t...);
19 void
20 baz ()
22   bar ();
25 template <class ...T>
26 void
27 qux (T... t)
29   void{t...};   // { dg-error "compound literal of non-object type" }
32 void
33 corge ()
35   qux (1, 2);
38 template <class ...T>
39 void
40 garply (T... t)
42   void{t..., t..., t...};
43   void(t..., t..., t...);
46 template <class ...T>
47 void
48 grault (T... t)
50   void{t..., 1};        // { dg-error "compound literal of non-object type" }