// RUN: %clang_cc1 -fsyntax-only -verify %s
// Various tests for -fno-exceptions
typedef __SIZE_TYPE__ size_t;namespacetest0{// rdar://problem/7878149
classFoo{public:void* operator new(size_t x);private:void operator delete(void*x);};voidtest(){// Under -fexceptions, this does access control for the associated
// 'operator delete'.
(void)newFoo();}}namespacetest1{voidf(){throw;// expected-error {{cannot use 'throw' with exceptions disabled}}
}voidg(){try{// expected-error {{cannot use 'try' with exceptions disabled}}
f();}catch(...){}}}