This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[testsuite] Fix up attribute_plugin-test-1.C (PR testsuite/41707)
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Janis Johnson <janis187 at us dot ibm dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 14 Oct 2009 17:21:30 +0200
- Subject: [testsuite] Fix up attribute_plugin-test-1.C (PR testsuite/41707)
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
Hi!
Must have missed this regression when testing the BUILTINS_LOCATION patch.
THe problem is that it calls warning (0, "...") from a callback without any
specific location, so now is reported at <built-in>:0:0 (which is IMHO
correct).
Ok for trunk?
2009-10-14 Jakub Jelinek <jakub@redhat.com>
PR testsuite/41707
* g++.dg/plugin/attribute_plugin-test-1.C: Expect the first
warning on line 0 instead of 1.
--- gcc/testsuite/g++.dg/plugin/attribute_plugin-test-1.C.jj 2009-05-14 09:33:17.000000000 +0200
+++ gcc/testsuite/g++.dg/plugin/attribute_plugin-test-1.C 2009-10-14 17:12:12.000000000 +0200
@@ -1,4 +1,4 @@
-// { dg-warning "Callback to register attributes" }
+// { dg-warning "Callback to register attributes" "" { target *-*-* } 0 }
void normal_func (char c, char c2);
void normal_func (char __attribute__((user("param"))) c, char);
Jakub