llvm-project/clang/test/Parser/cxx-member-initializers.cpp

11 lines
183 B
C++

// RUN: %clang_cc1 -fsyntax-only -verify %s
struct x {
x() : a(4) ; // expected-error {{expected '{'}}
};
struct y {
int a;
y() : a(4) ; // expected-error {{expected '{'}}
};