summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.mike/p700.C2
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/builtins10.C5
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/realloc.C1
3 files changed, 5 insertions, 3 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.mike/p700.C b/gcc/testsuite/g++.old-deja/g++.mike/p700.C
index 531962197df..62247791775 100644
--- a/gcc/testsuite/g++.old-deja/g++.mike/p700.C
+++ b/gcc/testsuite/g++.old-deja/g++.mike/p700.C
@@ -1,5 +1,5 @@
// { dg-do assemble }
-// { dg-options "-Wno-deprecated -Wno-register" }
+// { dg-options "-Wno-deprecated -Wno-register -Wno-builtin-declaration-mismatch" }
// { dg-error "limited range of data type" "16-bit target" { target xstormy16-*-* } 0 }
// prms-id: 700
diff --git a/gcc/testsuite/g++.old-deja/g++.other/builtins10.C b/gcc/testsuite/g++.old-deja/g++.other/builtins10.C
index 07f74f8f6e5..e5ba8bf6a72 100644
--- a/gcc/testsuite/g++.old-deja/g++.other/builtins10.C
+++ b/gcc/testsuite/g++.old-deja/g++.other/builtins10.C
@@ -1,7 +1,8 @@
// { dg-do assemble }
-// Test that built-in functions don't warn when prototyped without arguments.
+// Test that built-in functions do warn when prototyped without arguments.
// Origin: PR c++/9367
// Copyright (C) 2003 Free Software Foundation.
-extern "C" int snprintf();
+extern "C" int snprintf(); // { dg-warning "conflicts with built-in declaration" "" { target c++11 } }
+extern "C" int printf(); // { dg-warning "conflicts with built-in declaration" }
diff --git a/gcc/testsuite/g++.old-deja/g++.other/realloc.C b/gcc/testsuite/g++.old-deja/g++.other/realloc.C
index 3e50aa80490..8b9c2c60887 100644
--- a/gcc/testsuite/g++.old-deja/g++.other/realloc.C
+++ b/gcc/testsuite/g++.old-deja/g++.other/realloc.C
@@ -1,4 +1,5 @@
// { dg-do assemble }
+// { dg-options "-Wno-builtin-declaration-mismatch" }
extern "C" void realloc();