1 // RUN: %clang_cc1 -fcxx-exceptions -fexceptions -fsyntax-only -verify %s
15 try; // expected-error {{expected '{'}}
18 catch; // expected-error {{expected '('}}
21 catch (...); // expected-error {{expected '{'}}
24 catch {} // expected-error {{expected '('}}
35 A() try : i(0) {} catch(...) {}
36 void f() try {} catch(...) {}
37 A(float) : i(0) try {} // expected-error {{expected '{' or ','}}
40 A::A(char) : i(0) try {} // expected-error {{expected '{' or ','}}
41 A::A(int j
) try : i(j
) {} catch(...) {}
52 case Type
: i
= 7; break; // no error.
58 asm volatile ("":: :"memory");
59 asm volatile ("": ::"memory");
63 int k
, // expected-note {{change this ',' to a ';' to call 'f6'}}
64 f6(), // expected-error {{expected ';'}} expected-warning {{interpreted as a function declaration}} expected-note {{replace paren}}
65 int n
= 0, // expected-error {{expected ';'}}