summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2007-09-05 23:27:17 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2007-09-05 23:27:17 +0000
commita3558ba3474fc620dbf1473b4467c1cda81e8a9e (patch)
tree25366d4fc41359e214da9a68ae0144b9522f8311 /gcc/testsuite/g++.dg
parent28fcbe0589ad881e5b68222b3f6b3f79dfcb9f2e (diff)
downloadgcc-a3558ba3474fc620dbf1473b4467c1cda81e8a9e.tar.gz
PR c++/33289
* decl.c (builtin_function_1): Set DECL_ANTICIPATED also on __*_chk non-__builtin_* decls. * g++.dg/eh/builtin4.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128160 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/g++.dg')
-rw-r--r--gcc/testsuite/g++.dg/eh/builtin4.C6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/eh/builtin4.C b/gcc/testsuite/g++.dg/eh/builtin4.C
new file mode 100644
index 00000000000..32348174af6
--- /dev/null
+++ b/gcc/testsuite/g++.dg/eh/builtin4.C
@@ -0,0 +1,6 @@
+// PR c++/33289
+// { dg-do compile }
+
+typedef __SIZE_TYPE__ size_t;
+extern "C" int __sprintf_chk (char *__restrict, int, size_t, const char *, ...) throw ();
+extern "C" int __sprintf_chk (char *__restrict, int, size_t, const char *, ...) throw ();