1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 // Various tests for -fno-exceptions
5 typedef __SIZE_TYPE__
size_t;
10 void* operator new(size_t x
);
12 void operator delete(void *x
);
16 // Under -fexceptions, this does access control for the associated
24 throw; // expected-error {{cannot use 'throw' with exceptions disabled}}
28 try { // expected-error {{cannot use 'try' with exceptions disabled}}