From: Nico Weber Date: Wed, 24 Sep 2014 18:25:54 +0000 (+0000) Subject: Simplify tests. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eb4317aaa72112f6eae6e458df7ed78cad9f9195;p=clang Simplify tests. This reverts bits of r218166 that are no longer necessary now that r218394 made -Wmissing-prototype-for-cc a regular warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@218400 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/mangle-windows.c b/test/CodeGen/mangle-windows.c index 1d97831c47..37d1018283 100644 --- a/test/CodeGen/mangle-windows.c +++ b/test/CodeGen/mangle-windows.c @@ -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@0" diff --git a/test/CodeGen/mrtd.c b/test/CodeGen/mrtd.c index 9bc485d3f3..1132d04609 100644 --- a/test/CodeGen/mrtd.c +++ b/test/CodeGen/mrtd.c @@ -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); diff --git a/test/Sema/decl-microsoft-call-conv.c b/test/Sema/decl-microsoft-call-conv.c index c35e77f922..fefa8626eb 100644 --- a/test/Sema/decl-microsoft-call-conv.c +++ b/test/Sema/decl-microsoft-call-conv.c @@ -19,11 +19,3 @@ void __pascal CrcGenerateTableNoProtoPascal() {} // expected-error{{function wit // 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}}