]> granicus.if.org Git - clang/commitdiff
Update IUnknown lit test to pass on Win32
authorErich Keane <erich.keane@intel.com>
Mon, 2 Oct 2017 16:49:32 +0000 (16:49 +0000)
committerErich Keane <erich.keane@intel.com>
Mon, 2 Oct 2017 16:49:32 +0000 (16:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@314687 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaCXX/ms-iunknown-template-function.cpp

index 5e0bd09fd806157ea8e504298b6ab8eb981c159d..8f741a18eaacd6ca648a12c8ad8f9aa582f3f7b3 100644 (file)
@@ -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(