r314687 - Update IUnknown lit test to pass on Win32

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 2 09:49:32 PDT 2017


Author: erichkeane
Date: Mon Oct  2 09:49:32 2017
New Revision: 314687

URL: http://llvm.org/viewvc/llvm-project?rev=314687&view=rev
Log:
Update IUnknown lit test to pass on Win32

Modified:
    cfe/trunk/test/SemaCXX/ms-iunknown-template-function.cpp

Modified: cfe/trunk/test/SemaCXX/ms-iunknown-template-function.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/ms-iunknown-template-function.cpp?rev=314687&r1=314686&r2=314687&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/ms-iunknown-template-function.cpp (original)
+++ cfe/trunk/test/SemaCXX/ms-iunknown-template-function.cpp Mon Oct  2 09:49:32 2017
@@ -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 at +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(




More information about the cfe-commits mailing list