1 // { dg-do assemble  }
2 // GROUPS passed miscellaneous
3 // test that use of `inline' is forbidden when it should be
4 inline int i;// { dg-error "" "" { target c++14_down } } .*
5 struct c { inline int i; };// { dg-error "" } .*
6 int foo (inline int i);// { dg-error "" } .*
7 inline class c; // { dg-error "'inline' can only be specified for functions" } inline
8 inline typedef int t; // { dg-error "" } inline
9 class d { inline friend class c; }; // { dg-error "'inline' can only be specified for functions" } inline
10