* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / auto7.C
blob99685d33375e4f7bda5fe79ee0184bf0103b498b
1 // PR c++/37965
2 // Negative test for auto
3 // { dg-do compile { target c++11 } }
5 auto i = 6;
6 auto j;                 // { dg-error "has no initializer" }
8 template<int> struct A
10   static auto k = 7;    // { dg-error "15:ISO C\\+\\+ forbids" }
11   static auto l;        // { dg-error "has no initializer" }
12   auto m;               // { dg-error "non-static data member declared" }