summaryrefslogtreecommitdiffstats
path: root/test/Parser/cxx-member-initializers.cpp
blob: 34a725ff43af709478a04c6dea3e5cd059002547 (plain)
1
2
3
4
5
6
7
8
9
10
// 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 '{'}}
};
OpenPOWER on IntegriCloud