Make max_align_t respect _Float128.
[official-gcc.git] / libgo / go / syscall / syscall_darwin_test.go
blobcea5636d07d5c08f49e0ea7b621c001a17b8bb60
1 // Copyright 2016 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 // +build darwin
6 // +build amd64 386 arm arm64
8 package syscall_test
10 import (
11 "syscall"
12 "testing"
15 func TestDarwinGettimeofday(t *testing.T) {
16 tv := &syscall.Timeval{}
17 if err := syscall.Gettimeofday(tv); err != nil {
18 t.Fatal(err)
20 if tv.Sec == 0 && tv.Usec == 0 {
21 t.Fatal("Sec and Usec both zero")