summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/mrtd.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/mrtd.c')
-rw-r--r--clang/test/CodeGen/mrtd.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/clang/test/CodeGen/mrtd.c b/clang/test/CodeGen/mrtd.c
index 8fa7cf02cea..79cd490084f 100644
--- a/clang/test/CodeGen/mrtd.c
+++ b/clang/test/CodeGen/mrtd.c
@@ -1,4 +1,9 @@
-// RUN: %clang_cc1 -mrtd -triple i386-unknown-unknown -std=c89 -emit-llvm -o - %s | FileCheck %s
+// 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
+
+// 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 stdcall calling convention
void baz(int arg);
OpenPOWER on IntegriCloud