2 * Copyright 2008 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can
4 * be found in the LICENSE file.
10 #include "native_client/src/include/portability.h"
11 #include "native_client/src/include/nacl_assert.h"
17 sprintf(buf, "%"NACL_PRIxS, (size_t) -1);
18 printf("got:%s\n", buf);
19 if (sizeof(size_t) == 4) {
20 ASSERT_EQ(strcmp(buf, "ffffffff"), 0);
21 } else if (sizeof(size_t) == 8) {
22 ASSERT_EQ(strcmp(buf, "ffffffffffffffff"), 0);
24 ASSERT_MSG(0, "Unknown size_t size");