9 lines · cpp
1// RUN: %clang_cc1 -std=c++1z -verify %s2 3inline int f(); // ok4inline int n; // ok5 6inline typedef int t; // expected-error {{'inline' can only appear on functions and non-local variables}}7inline struct S {}; // expected-error {{'inline' can only appear on functions and non-local variables}}8inline struct T {} s; // ok9