| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2009 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * be found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 * Copyright 2009, Google Inc. | |
| 6 */ | 5 */ |
| 7 | 6 |
| 8 /* | 7 /* |
| 9 * A simple test for AddressSet. | 8 * A simple test for AddressSet. |
| 10 */ | 9 */ |
| 11 | 10 |
| 11 #ifndef NACL_TRUSTED_BUT_NOT_TCB |
| 12 #error This file is not meant for use in the TCB |
| 13 #endif |
| 14 |
| 12 #include <stdio.h> | 15 #include <stdio.h> |
| 13 #include <stdlib.h> | 16 #include <stdlib.h> |
| 14 | 17 |
| 15 #include "native_client/src/include/portability.h" | 18 #include "native_client/src/include/portability.h" |
| 16 #include "native_client/src/include/nacl_macros.h" | 19 #include "native_client/src/include/nacl_macros.h" |
| 17 #include "native_client/src/trusted/validator_arm/address_set.h" | 20 #include "native_client/src/trusted/validator_arm/address_set.h" |
| 18 | 21 |
| 19 using nacl_arm_val::AddressSet; | 22 using nacl_arm_val::AddressSet; |
| 20 | 23 |
| 21 static void test_mutation() { | 24 static void test_mutation() { |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 abort(); | 69 abort(); |
| 67 } | 70 } |
| 68 } | 71 } |
| 69 } | 72 } |
| 70 | 73 |
| 71 int main() { | 74 int main() { |
| 72 test_mutation(); | 75 test_mutation(); |
| 73 puts("Tests successful."); | 76 puts("Tests successful."); |
| 74 return 0; | 77 return 0; |
| 75 } | 78 } |
| OLD | NEW |