Files
clang-p2996/clang/test/CXX/class/class.static/class.static.data/p2.cpp
Richard Smith 62f19e700d Implement C++17 P0386R2, inline variables. (The 'inline' specifier gives a
variable weak discardable linkage and partially-ordered initialization, and is
implied for constexpr static data members.)

llvm-svn: 273754
2016-06-25 00:15:56 +00:00

8 lines
276 B
C++

// RUN: %clang_cc1 -std=c++1z -verify %s
struct X {
static struct A a;
static inline struct B b; // expected-error {{incomplete type}} expected-note {{forward decl}}
static inline struct C c = {}; // expected-error {{incomplete type}} expected-note {{forward decl}}
};