mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This fixes modularization errors that arise when importing a C++ header that contains `#include <guiddef.h>`, which might hijack this header from the WinSDK module where it belongs.
10 lines
220 B
Swift
10 lines
220 B
Swift
// RUN: %target-build-swift %s
|
|
// REQUIRES: OS=windows-msvc
|
|
|
|
// Make sure that importing WinSDK brings in the GUID type, which is declared in
|
|
// /shared and not in /um.
|
|
|
|
import WinSDK
|
|
|
|
public func usesGUID(_ x: GUID) {}
|