[cfe-commits] [libcxx] r134531 - /libcxx/trunk/test/depr/depr.c.headers/inttypes_h.pass.cpp

Sean Hunt scshunt at csclub.uwaterloo.ca
Wed Jul 6 13:52:28 PDT 2011


Author: coppro
Date: Wed Jul  6 15:52:28 2011
New Revision: 134531

URL: http://llvm.org/viewvc/llvm-project?rev=134531&view=rev
Log:
<inttypes.h> does not necessarily include <stdint.h>. Accordingly, do
not test for this.

Modified:
    libcxx/trunk/test/depr/depr.c.headers/inttypes_h.pass.cpp

Modified: libcxx/trunk/test/depr/depr.c.headers/inttypes_h.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/depr/depr.c.headers/inttypes_h.pass.cpp?rev=134531&r1=134530&r2=134531&view=diff
==============================================================================
--- libcxx/trunk/test/depr/depr.c.headers/inttypes_h.pass.cpp (original)
+++ libcxx/trunk/test/depr/depr.c.headers/inttypes_h.pass.cpp Wed Jul  6 15:52:28 2011
@@ -12,250 +12,6 @@
 #include <inttypes.h>
 #include <type_traits>
 
-#ifndef INT8_MIN
-#error INT8_MIN not defined
-#endif
-
-#ifndef INT16_MIN
-#error INT16_MIN not defined
-#endif
-
-#ifndef INT32_MIN
-#error INT32_MIN not defined
-#endif
-
-#ifndef INT64_MIN
-#error INT64_MIN not defined
-#endif
-
-#ifndef INT8_MAX
-#error INT8_MAX not defined
-#endif
-
-#ifndef INT16_MAX
-#error INT16_MAX not defined
-#endif
-
-#ifndef INT32_MAX
-#error INT32_MAX not defined
-#endif
-
-#ifndef INT64_MAX
-#error INT64_MAX not defined
-#endif
-
-#ifndef UINT8_MAX
-#error UINT8_MAX not defined
-#endif
-
-#ifndef UINT16_MAX
-#error UINT16_MAX not defined
-#endif
-
-#ifndef UINT32_MAX
-#error UINT32_MAX not defined
-#endif
-
-#ifndef UINT64_MAX
-#error UINT64_MAX not defined
-#endif
-
-#ifndef INT_LEAST8_MIN
-#error INT_LEAST8_MIN not defined
-#endif
-
-#ifndef INT_LEAST16_MIN
-#error INT_LEAST16_MIN not defined
-#endif
-
-#ifndef INT_LEAST32_MIN
-#error INT_LEAST32_MIN not defined
-#endif
-
-#ifndef INT_LEAST64_MIN
-#error INT_LEAST64_MIN not defined
-#endif
-
-#ifndef INT_LEAST8_MAX
-#error INT_LEAST8_MAX not defined
-#endif
-
-#ifndef INT_LEAST16_MAX
-#error INT_LEAST16_MAX not defined
-#endif
-
-#ifndef INT_LEAST32_MAX
-#error INT_LEAST32_MAX not defined
-#endif
-
-#ifndef INT_LEAST64_MAX
-#error INT_LEAST64_MAX not defined
-#endif
-
-#ifndef UINT_LEAST8_MAX
-#error UINT_LEAST8_MAX not defined
-#endif
-
-#ifndef UINT_LEAST16_MAX
-#error UINT_LEAST16_MAX not defined
-#endif
-
-#ifndef UINT_LEAST32_MAX
-#error UINT_LEAST32_MAX not defined
-#endif
-
-#ifndef UINT_LEAST64_MAX
-#error UINT_LEAST64_MAX not defined
-#endif
-
-#ifndef INT_FAST8_MIN
-#error INT_FAST8_MIN not defined
-#endif
-
-#ifndef INT_FAST16_MIN
-#error INT_FAST16_MIN not defined
-#endif
-
-#ifndef INT_FAST32_MIN
-#error INT_FAST32_MIN not defined
-#endif
-
-#ifndef INT_FAST64_MIN
-#error INT_FAST64_MIN not defined
-#endif
-
-#ifndef INT_FAST8_MAX
-#error INT_FAST8_MAX not defined
-#endif
-
-#ifndef INT_FAST16_MAX
-#error INT_FAST16_MAX not defined
-#endif
-
-#ifndef INT_FAST32_MAX
-#error INT_FAST32_MAX not defined
-#endif
-
-#ifndef INT_FAST64_MAX
-#error INT_FAST64_MAX not defined
-#endif
-
-#ifndef UINT_FAST8_MAX
-#error UINT_FAST8_MAX not defined
-#endif
-
-#ifndef UINT_FAST16_MAX
-#error UINT_FAST16_MAX not defined
-#endif
-
-#ifndef UINT_FAST32_MAX
-#error UINT_FAST32_MAX not defined
-#endif
-
-#ifndef UINT_FAST64_MAX
-#error UINT_FAST64_MAX not defined
-#endif
-
-#ifndef INTPTR_MIN
-#error INTPTR_MIN not defined
-#endif
-
-#ifndef INTPTR_MAX
-#error INTPTR_MAX not defined
-#endif
-
-#ifndef UINTPTR_MAX
-#error UINTPTR_MAX not defined
-#endif
-
-#ifndef INTMAX_MIN
-#error INTMAX_MIN not defined
-#endif
-
-#ifndef INTMAX_MAX
-#error INTMAX_MAX not defined
-#endif
-
-#ifndef UINTMAX_MAX
-#error UINTMAX_MAX not defined
-#endif
-
-#ifndef PTRDIFF_MIN
-#error PTRDIFF_MIN not defined
-#endif
-
-#ifndef PTRDIFF_MAX
-#error PTRDIFF_MAX not defined
-#endif
-
-#ifndef SIG_ATOMIC_MIN
-#error SIG_ATOMIC_MIN not defined
-#endif
-
-#ifndef SIG_ATOMIC_MAX
-#error SIG_ATOMIC_MAX not defined
-#endif
-
-#ifndef SIZE_MAX
-#error SIZE_MAX not defined
-#endif
-
-#ifndef WCHAR_MIN
-#error WCHAR_MIN not defined
-#endif
-
-#ifndef WCHAR_MAX
-#error WCHAR_MAX not defined
-#endif
-
-#ifndef WINT_MIN
-#error WINT_MIN not defined
-#endif
-
-#ifndef WINT_MAX
-#error WINT_MAX not defined
-#endif
-
-#ifndef INT8_C
-#error INT8_C not defined
-#endif
-
-#ifndef INT16_C
-#error INT16_C not defined
-#endif
-
-#ifndef INT32_C
-#error INT32_C not defined
-#endif
-
-#ifndef INT64_C
-#error INT64_C not defined
-#endif
-
-#ifndef UINT8_C
-#error UINT8_C not defined
-#endif
-
-#ifndef UINT16_C
-#error UINT16_C not defined
-#endif
-
-#ifndef UINT32_C
-#error UINT32_C not defined
-#endif
-
-#ifndef UINT64_C
-#error UINT64_C not defined
-#endif
-
-#ifndef INTMAX_C
-#error INTMAX_C not defined
-#endif
-
-#ifndef UINTMAX_C
-#error UINTMAX_C not defined
-#endif
-
 #ifndef PRId8
 #error PRId8 not defined
 #endif
@@ -875,48 +631,6 @@
 int main()
 {
     {
-    int8_t  i1 = 0;
-    int16_t i2 = 0;
-    int32_t i3 = 0;
-    int64_t i4 = 0;
-    }
-    {
-    uint8_t  i1 = 0;
-    uint16_t i2 = 0;
-    uint32_t i3 = 0;
-    uint64_t i4 = 0;
-    }
-    {
-    int_least8_t  i1 = 0;
-    int_least16_t i2 = 0;
-    int_least32_t i3 = 0;
-    int_least64_t i4 = 0;
-    }
-    {
-    uint_least8_t  i1 = 0;
-    uint_least16_t i2 = 0;
-    uint_least32_t i3 = 0;
-    uint_least64_t i4 = 0;
-    }
-    {
-    int_fast8_t  i1 = 0;
-    int_fast16_t i2 = 0;
-    int_fast32_t i3 = 0;
-    int_fast64_t i4 = 0;
-    }
-    {
-    uint_fast8_t  i1 = 0;
-    uint_fast16_t i2 = 0;
-    uint_fast32_t i3 = 0;
-    uint_fast64_t i4 = 0;
-    }
-    {
-    intptr_t  i1 = 0;
-    uintptr_t i2 = 0;
-    intmax_t  i3 = 0;
-    uintmax_t i4 = 0;
-    }
-    {
     imaxdiv_t  i1 = {0};
     }
     intmax_t i = 0;





More information about the cfe-commits mailing list