r314586 - clang/test/SemaCXX/ms-iunknown-template-function.cpp: Appease for targeting *-win32.

NAKAMURA Takumi via cfe-commits cfe-commits at lists.llvm.org
Sat Sep 30 02:16:41 PDT 2017


Author: chapuni
Date: Sat Sep 30 02:16:41 2017
New Revision: 314586

URL: http://llvm.org/viewvc/llvm-project?rev=314586&view=rev
Log:
clang/test/SemaCXX/ms-iunknown-template-function.cpp: Appease for targeting *-win32.

This expects the warning;

  File clang/test/SemaCXX/ms-iunknown-template-function.cpp Line 19: __declspec attribute 'novtable' is not supported

But for targeting *-win32, the warning is not seen.

  error: 'warning' diagnostics expected but not seen:
    File clang\test\SemaCXX\ms-iunknown-template-function.cpp Line 19 (directive at clang\test\SemaCXX\ms-iunknown-template-function.cpp:18): __declspec attribute 'novtable'

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=314586&r1=314585&r2=314586&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/ms-iunknown-template-function.cpp (original)
+++ cfe/trunk/test/SemaCXX/ms-iunknown-template-function.cpp Sat Sep 30 02:16:41 2017
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -verify -fms-extensions %s 
+// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fsyntax-only -verify -fms-extensions %s
 typedef long HRESULT;
 typedef unsigned long ULONG;
 typedef struct _GUID {




More information about the cfe-commits mailing list