Skip to content
Snippets Groups Projects
Commit 5ba6a1a2 authored by Richard Smith's avatar Richard Smith
Browse files

Avoid test failure on platforms where size_t is long long (and thus can't be

directly written in strictly-conforming source code).


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@216969 91177308-0d34-0410-b5e6-96231b3b80d8
parent 0a37d9b2
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
// FIXME: This is included to avoid a diagnostic with no source location // FIXME: This is included to avoid a diagnostic with no source location
// pointing at the implicit operator new. We can't match such a diagnostic // pointing at the implicit operator new. We can't match such a diagnostic
// with -verify. // with -verify.
void *operator new(__SIZE_TYPE__); // expected-warning 0-1{{missing exception spec}} expected-note{{candidate}} __extension__ typedef __SIZE_TYPE__ size_t;
void *operator new(size_t); // expected-warning 0-1{{missing exception spec}} expected-note{{candidate}}
namespace dr500 { // dr500: dup 372 namespace dr500 { // dr500: dup 372
class D; class D;
...@@ -564,7 +565,7 @@ namespace dr552 { // dr552: yes ...@@ -564,7 +565,7 @@ namespace dr552 { // dr552: yes
} }
struct dr553_class { struct dr553_class {
friend void *operator new(__SIZE_TYPE__, dr553_class); friend void *operator new(size_t, dr553_class);
}; };
namespace dr553 { namespace dr553 {
dr553_class c; dr553_class c;
...@@ -574,7 +575,7 @@ namespace dr553 { ...@@ -574,7 +575,7 @@ namespace dr553 {
void *p = new (c) int; // expected-error {{no matching function}} void *p = new (c) int; // expected-error {{no matching function}}
struct namespace_scope { struct namespace_scope {
friend void *operator new(__SIZE_TYPE__, namespace_scope); // expected-error {{cannot be declared inside a namespace}} friend void *operator new(size_t, namespace_scope); // expected-error {{cannot be declared inside a namespace}}
}; };
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment