Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / native_client / tests / toolchain / eh_separate_files.h
1 /*
2  * Copyright (c) 2013 The Native Client Authors. All rights reserved.
3  * Use of this source code is governed by a BSD-style license that can be
4  * found in the LICENSE file.
5  */
6
7 #ifndef NATIVE_CLIENT_TESTS_TOOLCHAIN_EH_SEPARATE_FILES_H_
8 #define NATIVE_CLIENT_TESTS_TOOLCHAIN_EH_SEPARATE_FILES_H_ 1
9
10 #include <stdint.h>
11
12 /*
13  * Declare some structs that we will use to do a basic test
14  * that pass by value turns into pass by pointer for PNaCl LE32 bitcode.
15  */
16
17 union VarValue {
18   int32_t as_bool;
19   int32_t as_int;
20   double as_double;
21   int64_t as_id;
22 };
23
24 struct Var {
25   int32_t type;
26   int32_t padding;
27   union VarValue value;
28 };
29
30 #endif  // NATIVE_CLIENT_TESTS_TOOLCHAIN_EH_SEPARATE_FILES_H_