<div dir="ltr">dr5xx.cpp is compiled with -std=c++98 mode with -pedantic-errors. C++98/03 didn't have long long in the standard back then.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Sep 2, 2014 at 3:50 PM, Jordan Rose <span dir="ltr"><<a href="mailto:jordan_rose@apple.com" target="_blank">jordan_rose@apple.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Eh? When is "long long" not a valid C++ type?<br>
<div class="HOEnZb"><div class="h5"><br>
> On Sep 2, 2014, at 14:39, Richard Smith <<a href="mailto:richard-llvm@metafoo.co.uk">richard-llvm@metafoo.co.uk</a>> wrote:<br>
><br>
> Author: rsmith<br>
> Date: Tue Sep  2 16:39:21 2014<br>
> New Revision: 216969<br>
><br>
> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=216969&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=216969&view=rev</a><br>
> Log:<br>
> Avoid test failure on platforms where size_t is long long (and thus can't be<br>
> directly written in strictly-conforming source code).<br>
><br>
> Modified:<br>
>    cfe/trunk/test/CXX/drs/dr5xx.cpp<br>
><br>
> Modified: cfe/trunk/test/CXX/drs/dr5xx.cpp<br>
> URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/drs/dr5xx.cpp?rev=216969&r1=216968&r2=216969&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/drs/dr5xx.cpp?rev=216969&r1=216968&r2=216969&view=diff</a><br>

> ==============================================================================<br>
> --- cfe/trunk/test/CXX/drs/dr5xx.cpp (original)<br>
> +++ cfe/trunk/test/CXX/drs/dr5xx.cpp Tue Sep  2 16:39:21 2014<br>
> @@ -5,7 +5,8 @@<br>
> // FIXME: This is included to avoid a diagnostic with no source location<br>
> // pointing at the implicit operator new. We can't match such a diagnostic<br>
> // with -verify.<br>
> -void *operator new(__SIZE_TYPE__); // expected-warning 0-1{{missing exception spec}} expected-note{{candidate}}<br>
> +__extension__ typedef __SIZE_TYPE__ size_t;<br>
> +void *operator new(size_t); // expected-warning 0-1{{missing exception spec}} expected-note{{candidate}}<br>
><br>
> namespace dr500 { // dr500: dup 372<br>
>   class D;<br>
> @@ -564,7 +565,7 @@ namespace dr552 { // dr552: yes<br>
> }<br>
><br>
> struct dr553_class {<br>
> -  friend void *operator new(__SIZE_TYPE__, dr553_class);<br>
> +  friend void *operator new(size_t, dr553_class);<br>
> };<br>
> namespace dr553 {<br>
>   dr553_class c;<br>
> @@ -574,7 +575,7 @@ namespace dr553 {<br>
>   void *p = new (c) int; // expected-error {{no matching function}}<br>
><br>
>   struct namespace_scope {<br>
> -    friend void *operator new(__SIZE_TYPE__, namespace_scope); // expected-error {{cannot be declared inside a namespace}}<br>
> +    friend void *operator new(size_t, namespace_scope); // expected-error {{cannot be declared inside a namespace}}<br>
>   };<br>
> }<br>
><br>
><br>
><br>
> _______________________________________________<br>
> cfe-commits mailing list<br>
> <a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
<br>
_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
</div></div></blockquote></div><br></div>