17 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -verify -std=c++98 %s2// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s3// RUN: %clang_cc1 -fsyntax-only -verify %s4// expected-no-diagnostics5namespace std {6 class bad_alloc { };7 8 typedef __SIZE_TYPE__ size_t;9}10 11class foo { virtual ~foo(); };12 13void* operator new(std::size_t); 14void* operator new[](std::size_t);15void operator delete(void*);16void operator delete[](void*);17