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
// 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"
-// 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);
// 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}}