diff options
author | Martin Sebor <msebor@redhat.com> | 2019-02-22 16:21:07 +0000 |
---|---|---|
committer | Martin Sebor <msebor@gcc.gnu.org> | 2019-02-22 09:21:07 -0700 |
commit | d228ac9ae52cc33ea572da89f325f8aeebd9eb32 (patch) | |
tree | ba496ddbccc7a4356d627cfc517a013707594fb4 /gcc | |
parent | f14322806253059eb49011c2cfdbae4c85ad47e4 (diff) | |
download | gcc-d228ac9ae52cc33ea572da89f325f8aeebd9eb32.zip gcc-d228ac9ae52cc33ea572da89f325f8aeebd9eb32.tar.gz gcc-d228ac9ae52cc33ea572da89f325f8aeebd9eb32.tar.bz2 |
Wbuiltin-declaration-mismatch-12.c: New test.
gcc/testsuite/ChangeLog:
* gcc.dg/Wbuiltin-declaration-mismatch-12.c: New test.
From-SVN: r269120
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/Wbuiltin-declaration-mismatch-12.c | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 5b27144..cb653e3 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2019-02-22 Martin Sebor <msebor@redhat.com> + + * gcc.dg/Wbuiltin-declaration-mismatch-12.c: New test. + 2019-02-22 H.J. Lu <hongjiu.lu@intel.com> Hongtao Liu <hongtao.liu@intel.com> Sunil K Pandey <sunil.k.pandey@intel.com> diff --git a/gcc/testsuite/gcc.dg/Wbuiltin-declaration-mismatch-12.c b/gcc/testsuite/gcc.dg/Wbuiltin-declaration-mismatch-12.c new file mode 100644 index 0000000..6bf9762 --- /dev/null +++ b/gcc/testsuite/gcc.dg/Wbuiltin-declaration-mismatch-12.c @@ -0,0 +1,8 @@ +/* Verify that declaring the __clear_cache and __builtin_prefetch + intrinsic functions with the wrong signature is diagnosed. + { dg-do compile } + { dg-options "-Wbuiltin-declaration-mismatch -Wextra" } */ + +extern void __clear_cache (char*, char*); /* { dg-warning "mismatch in argument 1 type of built-in function .__clear_cache.; expected .void \\\*." } */ + +void __builtin_prefetch (const char *, ...); /* { dg-warning "mismatch in argument 1 type of built-in function .__builtin_prefetch.; expected .const void \\\*." } */ |