]> granicus.if.org Git - clang/commitdiff
Simplify tests.
authorNico Weber <nicolasweber@gmx.de>
Wed, 24 Sep 2014 18:25:54 +0000 (18:25 +0000)
committerNico Weber <nicolasweber@gmx.de>
Wed, 24 Sep 2014 18:25:54 +0000 (18:25 +0000)
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

test/CodeGen/mangle-windows.c
test/CodeGen/mrtd.c
test/Sema/decl-microsoft-call-conv.c

index 1d97831c47381a7e453daa9b4e1d77431bd572bc..37d1018283589c6be3f041e7e81ce67042f7e1df 100644 (file)
@@ -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"
 
index 9bc485d3f35e6948f72603bead8b120fb72c61ab..1132d046095b86a52a8ac4a71c2245d32f649674 100644 (file)
@@ -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);
 
index c35e77f922113167876339dc9c7a5dba2f8d036b..fefa8626eb6add8286aee3040bbddbbce322aec9 100644 (file)
@@ -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}}