| Daniel Dunbar | 8fbe78f | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
| Daniel Dunbar | e9266a3 | 2009-09-12 23:06:30 +0000 | [diff] [blame] | 2 | |
| Anders Carlsson | 085af1f | 2009-09-12 19:35:43 +0000 | [diff] [blame] | 3 | struct x { |
| 4 | x() : a(4) ; // expected-error {{expected '{'}} | ||||
| 5 | }; | ||||
| 6 | |||||
| 7 | struct y { | ||||
| 8 | int a; | ||||
| 9 | y() : a(4) ; // expected-error {{expected '{'}} | ||||
| 10 | }; | ||||
| Sebastian Redl | 0d16401 | 2011-09-30 08:32:17 +0000 | [diff] [blame^] | 11 | |
| 12 | struct z { | ||||
| 13 | int a; | ||||
| 14 | z() : a {} // expected-error {{expected '('}} | ||||
| 15 | }; | ||||