Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CXX / dcl.dcl / dcl.spec / dcl.inline / p1.cpp
blob6db0b04a7496e53087cf60039244516bb033baec
1 // RUN: %clang_cc1 -std=c++1z -verify %s
3 inline int f(); // ok
4 inline int n; // ok
6 inline typedef int t; // expected-error {{'inline' can only appear on functions and non-local variables}}
7 inline struct S {}; // expected-error {{'inline' can only appear on functions and non-local variables}}
8 inline struct T {} s; // ok