diff options
Diffstat (limited to 'src/cmd/oldlink/internal/ld/testdata/issue32233/lib/ObjC.m')
-rw-r--r-- | src/cmd/oldlink/internal/ld/testdata/issue32233/lib/ObjC.m | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/cmd/oldlink/internal/ld/testdata/issue32233/lib/ObjC.m b/src/cmd/oldlink/internal/ld/testdata/issue32233/lib/ObjC.m new file mode 100644 index 0000000000..946278803e --- /dev/null +++ b/src/cmd/oldlink/internal/ld/testdata/issue32233/lib/ObjC.m @@ -0,0 +1,16 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +#import <Foundation/Foundation.h> +#import <AppKit/NSAppearance.h> + +BOOL function(void) { +#if defined(MAC_OS_X_VERSION_MIN_REQUIRED) && (MAC_OS_X_VERSION_MIN_REQUIRED > 101300) + NSAppearance *darkAppearance; + if (@available(macOS 10.14, *)) { + darkAppearance = [NSAppearance appearanceNamed:NSAppearanceNameDarkAqua]; + } +#endif + return NO; +} |