r218400 - Simplify tests.

Nico Weber nicolasweber at gmx.de
Wed Sep 24 11:25:55 PDT 2014


Author: nico
Date: Wed Sep 24 13:25:54 2014
New Revision: 218400

URL: http://llvm.org/viewvc/llvm-project?rev=218400&view=rev
Log:
Simplify tests.

This reverts bits of r218166 that are no longer necessary now that r218394 made
-Wmissing-prototype-for-cc a regular warning.

Modified:
    cfe/trunk/test/CodeGen/mangle-windows.c
    cfe/trunk/test/CodeGen/mrtd.c
    cfe/trunk/test/Sema/decl-microsoft-call-conv.c

Modified: cfe/trunk/test/CodeGen/mangle-windows.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/mangle-windows.c?rev=218400&r1=218399&r2=218400&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/mangle-windows.c (original)
+++ cfe/trunk/test/CodeGen/mangle-windows.c Wed Sep 24 13:25:54 2014
@@ -1,9 +1,6 @@
 // RUN: %clang_cc1 -emit-llvm %s -o - -triple=i386-pc-win32 | FileCheck %s
 // RUN: %clang_cc1 -emit-llvm %s -o - -triple=i386-mingw32 | FileCheck %s
 
-// prototype-less __stdcall functions are only allowed in system headers.
-# 1 "fake_system_header.h" 1 3 4
-
 void __stdcall f1(void) {}
 // CHECK: define x86_stdcallcc void @"\01_f1 at 0"
 

Modified: cfe/trunk/test/CodeGen/mrtd.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/mrtd.c?rev=218400&r1=218399&r2=218400&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/mrtd.c (original)
+++ cfe/trunk/test/CodeGen/mrtd.c Wed Sep 24 13:25:54 2014
@@ -1,9 +1,6 @@
-// RUN: %clang_cc1 -mrtd -triple i386-unknown-unknown -std=c89 -Wsystem-headers  -Wno-error=missing-prototype-for-cc -emit-llvm -o - %s 2>&1 | FileCheck %s
+// RUN: %clang_cc1 -mrtd -triple i386-unknown-unknown -std=c89 -emit-llvm -o - %s 2>&1 | FileCheck %s
 
-// prototype-less __stdcall functions are only allowed in system headers.
-# 1 "fake_system_header.h" 1 3 4
-
-// CHECK: fake_system_header.h:9:3: warning: function with no prototype cannot use the callee-cleanup stdcall calling convention
+// CHECK: mrtd.c:10:3: warning: function with no prototype cannot use the callee-cleanup stdcall calling convention
 
 void baz(int arg);
 

Modified: cfe/trunk/test/Sema/decl-microsoft-call-conv.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/decl-microsoft-call-conv.c?rev=218400&r1=218399&r2=218400&view=diff
==============================================================================
--- cfe/trunk/test/Sema/decl-microsoft-call-conv.c (original)
+++ cfe/trunk/test/Sema/decl-microsoft-call-conv.c Wed Sep 24 13:25:54 2014
@@ -19,11 +19,3 @@ void __pascal CrcGenerateTableNoProtoPas
 
 // Regular calling convention is fine.
 void CrcGenerateTableNoProto() {}
-
-
-// In system headers, the stdcall version should be a warning.
-# 1 "fake_system_header.h" 1 3 4
-void __fastcall SystemHeaderFastcall() {} // expected-error{{function with no prototype cannot use the callee-cleanup fastcall calling convention}}
-void __stdcall SystemHeaderStdcall() {}
-void __thiscall SystemHeaderThiscall() {} // expected-error{{function with no prototype cannot use the callee-cleanup thiscall calling convention}}
-void __pascal SystemHeaderPascal() {} // expected-error{{function with no prototype cannot use the callee-cleanup pascal calling convention}}





More information about the cfe-commits mailing list