2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
2009-09-13 07:06:30 +08:00
|
|
|
|
2009-09-13 03:35:43 +08:00
|
|
|
struct x {
|
|
|
|
x() : a(4) ; // expected-error {{expected '{'}}
|
|
|
|
};
|
|
|
|
|
|
|
|
struct y {
|
|
|
|
int a;
|
|
|
|
y() : a(4) ; // expected-error {{expected '{'}}
|
|
|
|
};
|