]> granicus.if.org Git - clang/commitdiff
clang/test/SemaCXX/ms-iunknown-template-function.cpp: Appease for targeting *-win32.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Sat, 30 Sep 2017 09:16:41 +0000 (09:16 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Sat, 30 Sep 2017 09:16:41 +0000 (09:16 +0000)
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'

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@314586 91177308-0d34-0410-b5e6-96231b3b80d8

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

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