1 | // RUN: %clang_cc1 -fsyntax-only -verify -std=c++98 %s |
---|---|
2 | // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s |
3 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
4 | // expected-no-diagnostics |
5 | namespace std { |
6 | class bad_alloc { }; |
7 | |
8 | typedef __SIZE_TYPE__ size_t; |
9 | } |
10 | |
11 | class foo { virtual ~foo(); }; |
12 | |
13 | void* operator new(std::size_t); |
14 | void* operator new[](std::size_t); |
15 | void operator delete(void*); |
16 | void operator delete[](void*); |
17 |