p2-noexceptions.cpp 309 B

1234567891011121314
  1. // RUN: %clang_cc1 -fsyntax-only -verify %s
  2. // expected-no-diagnostics
  3. namespace std {
  4. class bad_alloc { };
  5. typedef __SIZE_TYPE__ size_t;
  6. }
  7. class foo { virtual ~foo(); };
  8. void* operator new(std::size_t);
  9. void* operator new[](std::size_t);
  10. void operator delete(void*);
  11. void operator delete[](void*);