From: Erich Keane Date: Mon, 2 Oct 2017 16:49:32 +0000 (+0000) Subject: Update IUnknown lit test to pass on Win32 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6046d0c42aea6115c0f376c7bad45672ae3ca393;p=clang Update IUnknown lit test to pass on Win32 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@314687 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/SemaCXX/ms-iunknown-template-function.cpp b/test/SemaCXX/ms-iunknown-template-function.cpp index 5e0bd09fd8..8f741a18ea 100644 --- a/test/SemaCXX/ms-iunknown-template-function.cpp +++ b/test/SemaCXX/ms-iunknown-template-function.cpp @@ -1,4 +1,5 @@ -// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fsyntax-only -verify -fms-extensions %s +// RUN: %clang_cc1 -fsyntax-only -verify -fms-extensions %s +// expected-no-diagnostics typedef long HRESULT; typedef unsigned long ULONG; typedef struct _GUID { @@ -15,8 +16,7 @@ typedef GUID IID; extern "C" { extern "C++" { -// expected-warning@+1 {{__declspec attribute 'novtable'}} -struct __declspec(uuid("00000000-0000-0000-C000-000000000046")) __declspec(novtable) +struct __declspec(uuid("00000000-0000-0000-C000-000000000046")) IUnknown { public: virtual HRESULT __stdcall QueryInterface(