xref: /aosp_15_r20/external/clang/test/CXX/basic/basic.stc/basic.stc.dynamic/p2-noexceptions.cpp (revision 67e74705e28f6214e480b399dd47ea732279e315)
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // expected-no-diagnostics
3 namespace std {
4   class bad_alloc { };
5 
6   typedef __SIZE_TYPE__ size_t;
7 }
8 
9 class foo { virtual ~foo(); };
10 
11 void* operator new(std::size_t);
12 void* operator new[](std::size_t);
13 void operator delete(void*);
14 void operator delete[](void*);
15