1 /* Test for get_zone_offset fasttrap. */
2 
3 #include "config.h"
4 #include <stdio.h>
5 #include <sys/time.h>
6 #include <sys/trap.h>
7 
main(void)8 int main(void)
9 {
10 #if defined(VGP_x86_solaris)
11    __asm__ ( \
12       "movl %[FASTTRAP],%%eax\n"
13       "int $0xd2\n"
14       :
15       : [FASTTRAP] "i" (T_GETZONEOFFSET)
16       : "eax", "edx", "cc");
17 #elif defined(VGP_amd64_solaris)
18    __asm__ ( \
19       "movq %[FASTTRAP],%%rax\n"
20       "int $0xd2\n"
21       :
22       : [FASTTRAP] "i" (T_GETZONEOFFSET)
23       : "rax", "rdx", "cc");
24 #else
25 #  error "Unknown platform"
26 #endif
27 
28    return 0;
29 }
30 
31