1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 // Various tests for -fno-exceptions
5 typedef __SIZE_TYPE__
size_t;
8 // rdar://problem/7878149
11 void* operator new(size_t x
);
13 void operator delete(void *x
);
17 // Under -fexceptions, this does access control for the associated
25 throw; // expected-error {{cannot use 'throw' with exceptions disabled}}
29 try { // expected-error {{cannot use 'try' with exceptions disabled}}