[PATCH] D31856: Headers: Make the type of SIZE_MAX the same as size_t

Eli Friedman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 21 18:38:20 PDT 2017


efriedma added inline comments.


================
Comment at: clang/test/Headers/stdint-typeof-MINMAX.cpp:1
+// RUN: %clang_cc1 %s -ffreestanding -std=c++1z -fsyntax-only -triple=aarch64-none-none
+// RUN: %clang_cc1 %s -ffreestanding -std=c++1z -fsyntax-only -triple=arm-none-none
----------------
dexonsmith wrote:
> I copied the `-ffreestanding` out of test/Preprocessor/stdint.c, but I'm wondering if it even serves a purpose here... if not, we could make the RUN lines shorter (and fit 80 columns without breaking in two).
Without -ffreestanding, you're testing the contents of /usr/include/stdint.h rather than the compiler's builtin header.


https://reviews.llvm.org/D31856





More information about the cfe-commits mailing list