2016-09-01 04:38:32 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++98 %s
|
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
|
2010-03-24 15:14:45 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
2012-10-19 20:44:48 +08:00
|
|
|
// expected-no-diagnostics
|
2010-03-24 15:14:45 +08:00
|
|
|
namespace std {
|
|
|
|
class bad_alloc { };
|
|
|
|
|
|
|
|
typedef __SIZE_TYPE__ size_t;
|
|
|
|
}
|
|
|
|
|
|
|
|
class foo { virtual ~foo(); };
|
|
|
|
|
|
|
|
void* operator new(std::size_t);
|
|
|
|
void* operator new[](std::size_t);
|
|
|
|
void operator delete(void*);
|
|
|
|
void operator delete[](void*);
|