[cfe-commits] r165016 - in /cfe/trunk/test/Sema: MicrosoftCompatibility-x86.c MicrosoftCompatibility.c

Aaron Ballman aaron at aaronballman.com
Tue Oct 2 07:56:01 PDT 2012


Author: aaronballman
Date: Tue Oct  2 09:56:00 2012
New Revision: 165016

URL: http://llvm.org/viewvc/llvm-project?rev=165016&view=rev
Log:
Splitting this test case into two because the behavior for the calling convention code is target-specific.

Added:
    cfe/trunk/test/Sema/MicrosoftCompatibility-x86.c
Modified:
    cfe/trunk/test/Sema/MicrosoftCompatibility.c

Added: cfe/trunk/test/Sema/MicrosoftCompatibility-x86.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/MicrosoftCompatibility-x86.c?rev=165016&view=auto
==============================================================================
--- cfe/trunk/test/Sema/MicrosoftCompatibility-x86.c (added)
+++ cfe/trunk/test/Sema/MicrosoftCompatibility-x86.c Tue Oct  2 09:56:00 2012
@@ -0,0 +1,6 @@
+// RUN: %clang_cc1 %s -fsyntax-only -Wno-unused-value -Wmicrosoft -verify -fms-compatibility -triple i386-pc-win32
+int __stdcall f(void); /* expected-note {{previous declaration is here}} */
+
+int __cdecl f(void) { /* expected-error {{function declared 'cdecl' here was previously declared 'stdcall'}} */
+  return 0;
+}

Modified: cfe/trunk/test/Sema/MicrosoftCompatibility.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/MicrosoftCompatibility.c?rev=165016&r1=165015&r2=165016&view=diff
==============================================================================
--- cfe/trunk/test/Sema/MicrosoftCompatibility.c (original)
+++ cfe/trunk/test/Sema/MicrosoftCompatibility.c Tue Oct  2 09:56:00 2012
@@ -19,9 +19,3 @@
 struct __declspec(aligned) S2 {}; /* expected-warning {{unknown __declspec attribute 'aligned' ignored}} */
 
 struct __declspec(appdomain) S3 {}; /* expected-warning {{__declspec attribute 'appdomain' is not supported}} */
-
-int __stdcall f(void); /* expected-note {{previous declaration is here}} */
-
-int __cdecl f(void) { /* expected-error {{function declared 'cdecl' here was previously declared 'stdcall'}} */
-  return 0;
-}





More information about the cfe-commits mailing list