1 /*
2  * Copyright (C) 2015 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #include <gtest/gtest.h>
18 
19 #include <sys/procfs.h>
20 
TEST(sys_procfs,smoke)21 TEST(sys_procfs, smoke) {
22   elf_greg_t reg;
23   memset(&reg, 0, sizeof(reg));
24 
25   elf_gregset_t regs;
26   memset(&regs, 0, sizeof(regs));
27 
28   elf_fpregset_t fp_regs;
29   memset(&fp_regs, 0, sizeof(fp_regs));
30 
31   prgregset_t pr_g_regs;
32   memset(&pr_g_regs, 0, sizeof(pr_g_regs));
33 
34   prfpregset_t pr_fp_regs;
35   memset(&pr_fp_regs, 0, sizeof(pr_fp_regs));
36 
37   static_assert(sizeof(prgregset_t) == sizeof(elf_gregset_t), "");
38   static_assert(sizeof(prfpregset_t) == sizeof(elf_fpregset_t), "");
39 }
40